dynamic prefix !

2012-09-22 Thread Mamdoohi
hello, i have one prefix , this is 'admin', i want to have dynamic prefix, for this read prefix from config file and set it in $prefix i use this codes in routes.php Router::connect("/{$prefix}/:plugin/:controller", array('action' => 'index', 'prefix' => 'admin', 'admin' => true));Router::connec

problem in ACL

2012-07-22 Thread Mamdoohi
hello all, i used ACL in my project. i have this tree for my users. Public - Registered - Admin - Manager - SuperUser i want Registered can access to some (or all ) actions that Public can access also Manager can access some (or all) actions that Admin and Publi

create Ticketing

2011-12-13 Thread Mamdoohi
hi. I want create ticketing plugin. can you give a database structure for ticketing. -- Our newest site for the community: CakePHP Video Tutorials http:

Re: How Check validate before save

2011-11-30 Thread Mamdoohi
ok. I have two model ( user, employee ). and use this code if($this->Employee->saveAll($this->data,array('validate'=>'only')){ $this->Session->setFlash('Saved'); $this->redirect('/'); }else{ $this->Session->setFlash('error'); } but when send incorrect data, saveAll method don't save d

Re: can i have two login?

2011-11-30 Thread Mamdoohi
yes, same joomla. but joomla have two different session. if this approach is not correct, please said me. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP relat

Re: can i have two login?

2011-11-29 Thread Mamdoohi
ok. but all users have one row in users table with username and password and role_id fields. so when save my data in session the auth component replace new user with old user. what can i do for this? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: can i have two login?

2011-11-29 Thread Mamdoohi
can you more explain? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@g

can i have two login?

2011-11-28 Thread Mamdoohi
hi i create my website like joomla so i want two login for admin and registered user? with this i can where change in admin then see that in site. can i do it? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://a

using isAuthorized()

2011-11-27 Thread Mamdoohi
hi I use isAuthorized() for my users when this function return false the page redirect to home page but i want redirect to my path. how can i do? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

How Check validate before save

2011-11-27 Thread Mamdoohi
hi I want validate data before save. my data is for two table so I want check validate then save data into two table how can do it? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help othe

role-base authentication

2011-11-26 Thread Mamdoohi
hi. I use two table users and roles for authentication. now I have two role ( admin , registered ) for users and use routing.prefix for admin users. how can use Auth component for this users. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: Infinite re-direct during login

2011-11-22 Thread Mamdoohi
hi for any page that you want load without authentication, you must add this code in your beforeFilter() function in ony controller $this->Auth->allow('your_page') -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

Re: Help: how to use cakephp for subdomains

2011-11-08 Thread Mamdoohi
thanks AD7 for your answer. cake controllers loads correctly and everythings is ok. my css files exists and when write /app/webroot/css/style.css in address bar, it showing css. but when write /css/style.css .cake send missing controller. -- Our newest site for the community: CakePHP Video Tutor

cant use css() method for my subdomain

2011-11-07 Thread Mamdoohi
the css() method from html class work not correctly and when I use this method for my subdomain it cant load css file correctly -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others w

Help: how to use cakephp for subdomains

2011-11-06 Thread Hamid Mamdoohi
I create subdomain for my site. I use cakephp for that but when call $html->css('style') method to add tag and run it. cake can't load css file and send error of missing controller. please help me. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the