Search
 
SCRIPT & CODE EXAMPLE
 

PHP

cakephp 2 with customize link

Router::url('/', true) . 'img/example.png' (cakephp 2)
  
// localhost/domain/event/detail
$current_url = $this->request->here();
// => /domain/event/detail
Comment

cakephp 2 with customize link

echo $this->Html->link(__('<i class="fas fa-icons"></i>'), array(
  'plugin' => 'building', 
  'controller' => 'service_icons', 
  'action' => 'index', 
  '?building_post_id=' . $buildingPost['BuildingPost']['id']), array('class' => 'btn btn-info btn-xs', 'escape' => false, 'data-toggle'=>'tooltip', 'title' => __d('building', 'add_service_icon')));


// output
// http://localhost/paragonasia-portal/admin/building/service_icons/index/?building_post_id=16
Comment

cakephp 2 with customize link

// ------------------------------------
// ------------ one OR --------------
// ------------------------------------
$conditions = array(
    'OR' => array(
        array( 'MemberRole.school_id' 	=> array()),
        array( 'MemberRole.role_id' 	=> $role),
    );
);

// ------------------------------------
// ------------ multiple OR --------------
// ------------------------------------
 'OR' => array(
   array(
     'MemberRole.school_id' 	=> array(),
     'MemberRole.role_id' 	=> $role,
   ),
   array(
     'MemberRole.school_id' 	=> array(),
     'MemberRole.role_id' 	=>  Environment::read('role.register'),
   ),
   array(
     'MemberRole.school_id' 	=> $school_id,
     'MemberRole.role_id' 	=> Environment::read('role.register'),
   ),
   array(
     'MemberRole.school_id' 	=> $school_id,
     'MemberRole.role_id' 	=> $role
   )
 )
Comment

cakephp 2 with customize link

1. Add .htaccess
<IfModule mod_rewrite.c>
	RewriteEngine on
	RewriteRule ^$ webroot/ [L]
	RewriteRule (.*) webroot/$1 [L]
</IfModule>

2. Add Permission tmp, Vendor, Webroot
- Window Set permisson
- Linux Set chmod -R 777
Comment

PREVIOUS NEXT
Code Example
Php :: PHP strlen — Get string length 
Php :: phpmyadmin max upload 
Php :: laravel route is current route 
Php :: show date time with milliseconds php 
Php :: laravel optional route parameter in middle of url 
Php :: twig create new array 
Php :: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; 
Php :: laravel exists validation query two tables 
Php :: replace all php 
Php :: wordpress get category page title 
Php :: laravel gigapay create payout 
Php :: indian time laravel 
Php :: php substr remove last 4 characters 
Php :: carbon in laravel 
Php :: centos search directory php.exe 
Php :: laravel subdays 
Php :: php number to word 
Php :: how to fetch jQuery in wordpress 
Php :: image watermark on image laravel 8 
Php :: php.validate.executablepath wamp 
Php :: delete file laravel 8 
Php :: laravel vue csrf 
Php :: laravel collection remove duplicates 
Php :: Your Composer dependencies require the following PHP extensions to be installed: curl 
Php :: foreach loop in php 
Php :: check if all values in array are equal php 
Php :: carbon to mysql datetime 
Php :: laravel avoid logged in user to access a page 
Php :: upload file laravel 
Php :: concat and search in laravel eloquent 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =