how i apply css on $html->link

2010-05-25 Thread Dilip Godhani
Can any One hellp How i Apply css in $html->link i give css following link('Add',array('controller'=>$this->params['controller'],'action'=>'view'),array('class'=>'current')); ?> -- Dilip Godhani Jr Software Developer, Entourage Solutions e-mail: di...@entouragesolutions.com dilip.godh

Re: baking 1.3.0 problems?

2010-05-25 Thread Evangelos
worked for me too. thanks! is this a bug? On May 26, 5:37 am, Ed Propsner wrote: > Worked for me too, thanks Ben. That was an easy fix. > > On Tue, May 25, 2010 at 7:12 PM, Ben Mosher wrote: > > Fixed. Move 'templates' folder up into 'libs'. Or copy. Worked for me. > > > On May 25, 3:53 pm, Crot

Re: email header with variable Return-path:

2010-05-25 Thread toka...@gmail.com
is it cakephp BUG or just some wrong apache settings? thanks. Tomas On 25 kvě, 12:46, "toka...@gmail.com" wrote: > Hi, > I am trying to set "return-path:" param in email header... but it is > not working ...I am using cake's email component with this additional > settings: > > $this->Email->ret

Re: New install not finding Js files

2010-05-25 Thread nurvzy
Hi Jules, Where are you storing your js files and how are you calling them? Nick On May 25, 1:49 pm, Jules wrote: > Installed CakePHP 1.3, all working fine css file being found but as > soon as I try to add a js file I get a missing JsController error. I > can't find any reason for this, mod_

Re: baking 1.3.0 problems?

2010-05-25 Thread Ed Propsner
Worked for me too, thanks Ben. That was an easy fix. On Tue, May 25, 2010 at 7:12 PM, Ben Mosher wrote: > Fixed. Move 'templates' folder up into 'libs'. Or copy. Worked for me. > > On May 25, 3:53 pm, CrotchFrog wrote: > > @invisibleman: > > > > Did you ever resolve this problem? I'm having the

Re: baking 1.3.0 problems?

2010-05-25 Thread Ben Mosher
Fixed. Move 'templates' folder up into 'libs'. Or copy. Worked for me. On May 25, 3:53 pm, CrotchFrog wrote: > @invisibleman: > > Did you ever resolve this problem? I'm having the same issue. > > On Apr 27, 6:18 am, invisibleman wrote: > > > i can't seem to bake my models, views or controllers i

Re: baking 1.3.0 problems?

2010-05-25 Thread Ben Mosher
Same problem for me as well. I didn't have 'libs' on my file path. Seems like a Windows install might be the common denominator... On May 25, 5:24 pm, Evangelos wrote: > Same problem here. I updated my app with 1.3.0 stable and the baking > console is not working any more! Same errors as above.

New install not finding Js files

2010-05-25 Thread Jules
Installed CakePHP 1.3, all working fine css file being found but as soon as I try to add a js file I get a missing JsController error. I can't find any reason for this, mod_rewrite seems to be working or the css wouldn't be found. If anyone knows how to fix please help this error is driving me mad

HABTM Containable find('all') question

2010-05-25 Thread bradmaxs
Hello, I am working on a HABTM relationship. Here is my controller action: function index() { $this->User->Behaviors->attach('Containable'); $this->paginate = array( 'contain' => array( 'friend' => ar

Re: How to use fileupload component to replace a file with a newer version

2010-05-25 Thread nurvzy
Hi Matt, That's actually my article and I have since made substantial improvements and converted it into a full featured plugin. In the most recent release of the file upload plugin you'll be able to configure the plugin to overwrite uploads with the same name instead of the plugin detecting if

Re: baking 1.3.0 problems?

2010-05-25 Thread Evangelos
Same problem here. I updated my app with 1.3.0 stable and the baking console is not working any more! Same errors as above. See image attached. http://www.screencast.com/users/Sarpidon/folders/Jing/media/b588b42c-b65b-410d-a77a-e5e8ac76e9a8 On May 25, 10:53 pm, CrotchFrog wrote: > @invisibleman:

Re: baking 1.3.0 problems?

2010-05-25 Thread CrotchFrog
@invisibleman: Did you ever resolve this problem? I'm having the same issue. On Apr 27, 6:18 am, invisibleman wrote: > i can't seem to bake my models, views or controllers in the stable of > cakephp 1.3.0 is anyone else having this problem? > > It just seems to create empty files for me. For exa

Re: Ajax problem ???

2010-05-25 Thread Ed Propsner
I know it was grasping at straws but the switch to 1.3 stable didn't help. However now the console bakes empty models and terminates with a fatal error when baking controllers, 8-) On Tue, May 25, 2010 at 12:52 AM, Ed Propsner wrote: > just wondering, I'm still on RC4 and working on switching

Re: Header element not refreshing!!!

2010-05-25 Thread sherzo
Hi Paul Here is the problem definition :) In order to display the city deals controller reads the city from the URL, if there is no city in the URL it checks the cookie. after defining the city I update the cookie and also pass the city name and the city id to the session and then load the

Re: CakePHP 1.3 Route Problem????

2010-05-25 Thread PaulMan
From: http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 A small change has also been done to routing params. Routed params should now only consist of alphanumeric chars, - and _ or /[A-Z0-9-_+] +/. - params are all alphanumeric but Not Working Router::connect( '/:title-o-:o

Re: Find all Posts WITHOUT Tags (habtm)

2010-05-25 Thread dw
What you want is a subquery. Check out the subquery section of this page: http://book.cakephp.org/view/74/Complex-Find-Conditions On May 24, 7:55 am, "designv...@gmail.com" wrote: > Hi All, > > I'm currently finding all Posts without Tags by querying the join > table and getting the unique Post i

Re: REQUEST: Change httpsocket default timeout

2010-05-25 Thread John Andersen
In the source code for the HttpSocket, you can see the following comment: 144 * Build an HTTP Socket using the specified configuration. 145 * 146 * You can use a url string to set the url and use default configurations for 147 * all other options: 148 * 149 * `$http =& new

Multiple connections

2010-05-25 Thread Maury
Staff, I have a database that has a table that contains the data for several other connections to the database. When I have a SQL script (example: ALTER TABLE ...) I want to run for all other databases. I would read the main database and I would connect to other databases to run the script. How c

REQUEST: Change httpsocket default timeout

2010-05-25 Thread kpw.joseluis
Hi, I would like to be able to change the default httpsocket's timeout value (30 seconds on /cake/libs/cake_socket.php) Any chance to change it (in a future version of CakePhp) without having to edit the main source file (cake_socket.php)? Many thanks and regards. Check out the new CakePHP Ques

Re: How to join 2 tables in the controller

2010-05-25 Thread Narendra Padala
thanks ... for giving good suggestion On Tue, May 25, 2010 at 6:58 PM, Dilip Godhani wrote: > cakephp support relation u create one model in model folder and give > relationship of two table cake automatic join that two table > > > On Tue, May 25, 2010 at 6:57 PM, Narendra Padala > wrote: > >>

Re: How to join 2 tables in the controller

2010-05-25 Thread Dilip Godhani
cakephp support relation u create one model in model folder and give relationship of two table cake automatic join that two table On Tue, May 25, 2010 at 6:57 PM, Narendra Padala wrote: > $storeDivisions = $this->Store->find('all', > array('joins' => array( >

Re: How to join 2 tables in the controller

2010-05-25 Thread Narendra Padala
$storeDivisions = $this->Store->find('all', array('joins' => array( array('table' => 'divisions', 'alias' => 'd', 'type' => 'left',

Re: Can Any one Helllp me?

2010-05-25 Thread Dilip Godhani
try to follow following example it help to $baldata=$this->PartnerDetail->find('all',array('conditions' => array('PartnerDetail.partner_id' =>$this->data['Dashboard']['id']),'order' => array('PartnerDetail.id DESC'),'limit' => 1,)); On Tue, May 25, 2010 at 6:50 PM, Narendra Padala wrote: >

Re: Can Any one Helllp me?

2010-05-25 Thread Narendra Padala
$suppliers = $this->Supplier->find('all', array( 'conditions' => array('AND',array('supplier_name'=>'narendra', 'supplier_id'

Re: Creating custom report

2010-05-25 Thread Dilip Godhani
is it working? On Tue, May 25, 2010 at 6:28 PM, Narendra Padala wrote: > thanks... for correction > > > On Tue, May 25, 2010 at 6:27 PM, Dilip Godhani wrote: > >> >> Heyy >> error in this statement >> >> $$this->set('authakeUsers',$ >> authakeUserQuery); >> >> >> correct folowing >> $this->set('a

Re: Creating custom report

2010-05-25 Thread Narendra Padala
thanks... for correction On Tue, May 25, 2010 at 6:27 PM, Dilip Godhani wrote: > > Heyy > error in this statement > > $$this->set('authakeUsers',$ > authakeUserQuery); > > > correct folowing > $this->set('authakeUsers',$ > authakeUserQuery); > Try this > > On Tue, May 25, 2010 at 6:25 PM, Narendr

Re: Creating custom report

2010-05-25 Thread Dilip Godhani
Heyy error in this statement $$this->set('authakeUsers',$ authakeUserQuery); correct folowing $this->set('authakeUsers',$ authakeUserQuery); Try this On Tue, May 25, 2010 at 6:25 PM, Narendra Padala wrote: > put code to ur controller > -- > $createdValue='12.34.00'; > $authakeUserQ

Re: Creating custom report

2010-05-25 Thread Narendra Padala
put code to ur controller -- $createdValue='12.34.00'; $authakeUserQuery=$this->authakeUser->find('all', array('conditions'=>array('authakeUser.created'=>$createdValue))); $$this->set('authakeUsers',$authakeUserQuery); --.ctp file login password email created updated

Re: Question about Routing (domain.com/{cityname}/controller/action)

2010-05-25 Thread emanuele
Router::connect('/:alias/:controller/:action/*', array(), array( 'persist' => array('alias'), )); On Tue, May 25, 2010 at 10:32 AM, Bennet Jeutter wrote: > Hallo everyone, > > I got a question about routing: > I'm developing a project, which is based on ci

CakePHP 1.3 Route Problem????

2010-05-25 Thread PaulMan
Router::connect( '/:slug-n-:id', array('controller' => 'pages', 'action' => 'news_detail'), array( 'pass' => array('id', 'slug'), 'slug' => '.*', 'id' => '[\d]+' ) ); is this correct in CakePHP 1.3 ? it generates this error Warning (2): preg_match() [function.preg-matc

Re: Routes

2010-05-25 Thread Marco
Have you tried: Router::connect('/:alias/:controller/:action', array(), array('alias'=> '[a-zA-z0-9]+')); Marco On May 24, 10:31 am, emanuele wrote: > Hello pals, > > I can't really figure out one thing about Routes.. > > My url is something like localhost/acme/mycontroller/myaction.. my questi

email header with variable Return-path:

2010-05-25 Thread toka...@gmail.com
Hi, I am trying to set "return-path:" param in email header... but it is not working ...I am using cake's email component with this additional settings: $this->Email->return = 'exam...@example.com'; I am running Mac OS with XAMPP (localhost) and if I configure php.ini (sendmail_path), then it wo

Question about Routing (domain.com/{cityname}/controller/action)

2010-05-25 Thread Bennet Jeutter
Hallo everyone, I got a question about routing: I'm developing a project, which is based on cities. So i want to have URLs like domain.com/{cityname}/controller/action. Example: domain.com/frankfurt/people/view/3 The Controller and Actions should be for alle Cities the same, I would catche the ci

Re: HABTM, LEFT JOIN and cakephp

2010-05-25 Thread WebbedIT
So you're after a list of agents who are not assigned to a branch? How about using counter_cache_habtm to count how many branches each agent belongs to and how many agents each branch has? http://bakery.cakephp.org/articles/view/counter-cache-behavior-for-habtm-relations Otherwise you are looking

Re: Session Problem with Auth

2010-05-25 Thread WebbedIT
Can you explain how that change has anything to do with your original query? Placing your logic in the Users controller is only going to change the layout when they are working with actions from that controller, should that not be in the App controller and have it check if the users is logged in t