$(document).ready(function() {
if($('INPUT').length>0){
$('INPUT').mask('SSSS-SSSS-SSSS', {'translation': {S: {pattern: /[A-Za-z0-9]/}}}); // Here you need to change customize the pattern
}
});
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
$(document).ready(function() {
if($('INPUT').length>0){
$('INPUT').mask('SSSS-SSSS-SSSS', {'translation': {S: {pattern: /[A-Za-z0-9]/}}}); // Here you need to change customize the pattern
}
});
CakeLog::config('customlog', array( 'engine' => 'File', 'path' => WWW_ROOT.'files/log/' ));
customlog - Logname
path - Yourself to set customize whatever you need
Code:
CakeLog::write('customlog', 'Log data');
public function urls()
{
echo "<div style=''>";
echo "Current URL=" . Router::url(null, true);
echo "<BR>Current URL=" . Router::url(null, false);
echo "<BR>Current URL=" . $this->request->getUri();
echo "<BR>Current URL=" . $this->request->getUri()->getPath();
echo "<BR>Current URL=" . $this->request->getRequestTarget();
echo "<BR>Full URL=" . Router::url("/", true);
echo "<BR>Base URL=" . Router::url("/", false);
die("</div>");
}
And output would like this:
Current URL=http://localhost/cake/pages/urls
Current URL=/cake/pages/urls
Current URL=http://localhost/pages/urls?id=20&name=Pritom
Current URL=/pages/urls
Current URL=/pages/urls?id=20&name=Pritom
Full URL=http://localhost/cake/
Base URL=/cake/