Re: Inflector::slug preg_replace is not working as expected.

2010-07-06 Thread junaidart
You are right, it was issue with PCRE Library, I have upgraded to latest version "7.9 2009-04-11 " and now it is working! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the G

Re: ACL customization

2010-07-06 Thread mirfan
Thanks alot brother On Jul 6, 12:38 pm, jodator wrote: > 1 & 2 -> custom login action > > 3 -> well basically the same as 1 & 2. You can do it all in one login > action in users_controller: > >   function login() { > >     if ($this->Session->read('Auth.User')) { >       //Is acc enabled? >      

Re: Media Plugin - Getting Started

2010-07-06 Thread randy
Quick reply to answer your questions... My directory structure is like the first one, with app/webroot/ transfer instead of app/webroot/media/transfer. I'd like to not serve EVERY media file from the plugin, so I'm going to do what I can to not pull my CSS into that directory structure. So...my s

Fatal error: Call to undefined method ThemeView::RenderElement()

2010-07-06 Thread arif hossen
Dear Experts, I need help. i got below this problem when i have added renderElement in my layout. I have also keep my file into views/elements folder. After add this file below error occurs. *Fatal error*: Call to undefined method ThemeView::RenderElement() in * /opt/lampp/htdocs/arifhossen_rural

404 Error in Debug Mode

2010-07-06 Thread jonathan
Hi All, Working in CakePHP 1.3 and really digging it. I am having one particular issue and I am hoping someone could point me in the right direction. I have a third-party Java applet in my view and as long as the debug level is 0 in core.php, it runs fine. If I set debug to 1 or higher, it fail

Re: Can I change $id on ->read(null, $id) to $username or something?

2010-07-06 Thread Sam
Try ->findByUsername($username) On Jul 6, 9:38 pm, Louie Miranda wrote: > Can I change $id on ->read(null, $id) to $username or something? > > The code at:http://bin.cakephp.org/view/700064814 > > Tries to change the id to username, but I am not sure if this is the correct > one. I checked the a

Cakephp ACL Permission

2010-07-06 Thread malu star
Hi, I have added all controllers action in acos table. and added id of 'Add' action in aros_acos table and linked corresponding aro in acos_aros table. Then i give the permission $this->Acl- >allow('raj','Usercontroller','create') after running the site i can't get value 1 in create field of a

Can I change $id on ->read(null, $id) to $username or something?

2010-07-06 Thread Louie Miranda
Can I change $id on ->read(null, $id) to $username or something? The code at: http://bin.cakephp.org/view/700064814 Tries to change the id to username, but I am not sure if this is the correct one. I checked the api but, it seems it is not working. I am on 1.3. The SQL is still finding the id, i

Re: Media Plugin - Getting Started

2010-07-06 Thread dbme
Awesome! So what is your directory structure (step 3)? Is it app/webroot/media/static/ app/webroot/media/filter/ app/transfer/ OR app/webroot/media/static/ app/webroot/media/filter/ app/webroot/media/transfer/ Also, did the styles still get served properly after step 5 (protecting the transfer

Re: Godaddy hosting and mod_rewrite

2010-07-06 Thread Flavia Missi
Hi! Did you already tried this: http://bakery.cakephp.org/articles/view/mod-rewrite-on-godaddy-shared-hosting hope it helps! =) 2010/7/6 Jay > Hi All: > > I have a godaddy hosting account and having some problems

Re: Media Plugin - Getting Started

2010-07-06 Thread randy
So glad to see someone else is taking a crack at this... Thanks to your post i was able to make a bit of headway...when i set this up the first time I had troubles with getting things right in my bootstrap.php file. However, i had a fairly easy time with other parts of this, namely the actual file

Re: CakePHP 1.3 helper and variable name collision.

2010-07-06 Thread aleph1
Is there any way to avoid a conflict if I want to define a variable named $artist? The problem in the previous code is that $this->Artist is overwritten by the value of $artist within the loop. This is doubly frustrating as the case of the variables is different (Artist versus artist) which PHP is

Re: CakePHP 1.3 helper and variable name collision.

2010-07-06 Thread Miles J
In 1.3 it supports both $artist and $this->Artist. On Jul 6, 4:53 pm, aleph1 wrote: > I thought in CakePHP 1.3 the issue with helpers and variables > colliding had been resolved. However, in the below view code the > gettype function outside of the loop references the ArtistHelper > correctly (re

CakePHP 1.3 helper and variable name collision.

2010-07-06 Thread aleph1
I thought in CakePHP 1.3 the issue with helpers and variables colliding had been resolved. However, in the below view code the gettype function outside of the loop references the ArtistHelper correctly (returns "object"), and inside refers to the $artist variable (returns "array"). Artist); foreac

Godaddy hosting and mod_rewrite

2010-07-06 Thread Jay
Hi All: I have a godaddy hosting account and having some problems with routing. The files are under /cakephp under the default /html folder. The full url is still showing instead of the desired www.domain.org Please help. The current setup /cakephp/.htaccess RewriteEngine on RewriteBas

save all template elements position

2010-07-06 Thread hoss7
i need some idea,i am new in cakephp i need create some user freindly website,and user can move some template elements from left<=>right or top<=>bottom on the one page in website and i need save all template elements position. for example i have 3 div and div1 in left show some news and in right

Re: Something like ActiveMerchant?

2010-07-06 Thread iamcam (Cameron Perry)
True - most gateways have PHP code to back it up, but I still feel like there's a bit of reinventing the wheel every time you start a new app or gateway. I think there are a lot of benefits to abstracting the code, so in theory further development should become relatively straightforward. The bigge

Re: keep admin out of form action

2010-07-06 Thread cricket
On Mon, Jul 5, 2010 at 5:00 PM, nurvzy wrote: > $form->create('Member', array('url' => array('admin' => false, > 'controller' => 'members', 'action' => 'region'), 'type' => 'get')); > > That should get you what you want, > Nick Like a charm. Thanks. Check out the new CakePHP Questions site http:

Re: Database Design Question

2010-07-06 Thread cricket
On Tue, Jul 6, 2010 at 4:26 AM, dtemes wrote: > I would not use cascade delete on sender_id, once a mail is in your > box it's yours and it can contain important information that should > not be "stolen" from you even if the user that sent it is not there > any more. Good point! Check out the ne

Re: am i doing it right? for this question AND overall...

2010-07-06 Thread Shaz
Not quite what CakePHP would like you to do - have a read of the tutorial for a simple ACL application. http://book.cakephp.org/view/641/Simple-Acl-controlled-Application On Jul 5, 5:13 am, randy wrote: > it feels kind of yucky... > > in order to get my auth+acl setup working, i had to subclass

Re: How to use sql 'between' command with CakePhp requestAction()

2010-07-06 Thread Shaz
requestAction() is bad! Implement recursive relationship between models and use the find() with contain and conditions! On Jul 5, 2:38 pm, Ahmet Kemal wrote: > Hello, > > I have an element that grabs data from mysql. Here is my working code: > >     $this->requestAction('posts/index/sort:id/direc

Re: Inheritance of custom class

2010-07-06 Thread Shaz
CakePHP follows the MVC pattern. Each controller has an associated model and a view - you can specify in the model which database table to use, or to not use one at all - but unless you specify, you will keep getting errors. On Jul 5, 3:57 pm, "vaugh...@switchdesign.com" wrote: > Im really new to

Re: Something like ActiveMerchant?

2010-07-06 Thread Shaz
Interesting - I have come across ActiveMerchant when doing RoR applications - but never thought about something similar mostly because the API support of most payment gateways is pretty straightforward using php... On Jul 5, 11:51 pm, "iamcam (Cameron Perry)" wrote: > Has anyone seen anything lik

Re: Cakephp ACL Permission

2010-07-06 Thread Shaz
You need to either manually add the ACO to the database or run the build_acl() function provided in the tutorial. On Jul 6, 11:03 am, malu star wrote: > I have add a function named 'add'  in one of my controlller and then i > called that action that time i got this Notice > > ACO permissions key

Re: fatal error in create()

2010-07-06 Thread Shaz
Try $this->aro->create() instead. On Jul 6, 1:12 pm, Kanwal wrote: > i have one controller in which i have following function: > > var $components = array('Acl'); > function anyaction() > { >         $aro =& $this->Acl->Aro; > >         //Here's all of our group info in an array we can iterate th

fatal error in create()

2010-07-06 Thread Kanwal
i have one controller in which i have following function: var $components = array('Acl'); function anyaction() { $aro =& $this->Acl->Aro; //Here's all of our group info in an array we can iterate through $groups = array( 0 => array(

Re: TinyMCE css with CakePHP

2010-07-06 Thread integrator
Maybe it helps to put this code instead to avoid reading the css from the cache. content_css : "webroot.'/css/content.css';?>?" + new Date().getTime(), On 6 jul, 08:11, Sanfly wrote: > Hi > > Im trying to set up TinyMCE with my cake installation, but im having > trouble with the css styles. > > I

Re: TinyMCE css with CakePHP

2010-07-06 Thread integrator
Hi, Maybe it is taking the css from the cache. You can try to put: content_css : "webroot.'/css/content.css';?>?" + new Date().getTime(), in the css line. On 6 jul, 08:11, Sanfly wrote: > Hi > > Im trying to set up TinyMCE with my cake installation, but im having > trouble with the css styles. >

Re: User differentiation

2010-07-06 Thread xamako
Try this http://github.com/jedt/spark_plug On Jul 6, 3:00 pm, Davor Ilic wrote: > Hi, > > how i can solve the differentiation > between > Adminusers and the normal Users. Is there an other way to say in methods > like admin: admin_user() {} and normal_user() {} > or is there an other way to do t

User differentiation

2010-07-06 Thread Davor Ilic
Hi, how i can solve the differentiation between Adminusers and the normal Users. Is there an other way to say in methods like admin: admin_user() {} and normal_user() {} or is there an other way to do this? Check out the new CakePHP Questions site http://cakeqs.org and help others with their Ca

Cakephp ACL Permission

2010-07-06 Thread malu star
I have add a function named 'add' in one of my controlller and then i called that action that time i got this Notice ACO permissions key add does not exist in DbAcl::check(). How to solve this notice. please help me to solve this Check out the new CakePHP Questions site http://cakeqs.org and he

Re: Database Design Question

2010-07-06 Thread dtemes
I would not use cascade delete on sender_id, once a mail is in your box it's yours and it can contain important information that should not be "stolen" from you even if the user that sent it is not there any more. On 5 jul, 20:52, cricket wrote: > On Mon, Jul 5, 2010 at 10:17 AM, duderion wrote:

Re: ACL customization

2010-07-06 Thread jodator
1 & 2 -> custom login action 3 -> well basically the same as 1 & 2. You can do it all in one login action in users_controller: function login() { if ($this->Session->read('Auth.User')) { //Is acc enabled? $emailAuhtenticated = $this->Session- >read('Auth.User.email_authenticate