Removing "On behalf of" from the Email From field Cakephp 1.3

2011-12-21 Thread hunny
Hi All, I am using the email component of cakephp 1.3 to send emails. In the From Field, I am using the following code. $this->Email->from = 'my_default_n...@sitename.com' However, when the user recieves the email it reads as "sta...@servername.com on behalf of my_default_n...@sitename.com" Wha

Re: Validating HABTM

2011-06-14 Thread hunny
Write the Validation Rule in Language Model instead of User Model On Jun 14, 9:56 pm, Shaz wrote: > I have User HABTM Language, and i want to ensure during a User add / > edit they choose a minimum of one language, upto a maximum of 3. In > the user model, for $validate I've tried: > > 'Language'

Re: Basic Authentication not working

2011-04-21 Thread hunny
Hi All, The issues is solved, PHP was running as CGI. Thanks. On Apr 21, 1:26 pm, hunny wrote: > Hi, > > I used this very basic example from the manual to > implementhttp://book.cakephp.org/view/1309/Basic-HTTP-Authentication. It > worked > fine on my test server, but whe

Re: Dynamic table with cakephp

2011-04-21 Thread hunny
Create a model file (lets call it Dynamic) In your Controller, you can use $this->Dynamic->useTable = 'YOUR_TABLE_NAME'; Thanks. On Apr 21, 1:23 pm, Jeremy Burns | Class Outfit wrote: > Please show some more of your code - we're in the dark a bit about what you > are trying to do. >

Basic Authentication not working

2011-04-21 Thread hunny
Hi, I used this very basic example from the manual to implement http://book.cakephp.org/view/1309/Basic-HTTP-Authentication. It worked fine on my test server, but when I moved the code to my production server, it has stopped working. It keeps prompting me for the username and password. I have deb

Re: Cake Paginator Displaying Wrong page number

2011-04-01 Thread hunny
->Paginator->options(array('url' => $this->passedArgs)); Check following for more details: http://book.cakephp.org/view/1233/Pagination-in-Views Thanks, Hunny. On Apr 1, 2:13 am, Spetz83 wrote: > Hi all, > > I am having an issue with the cake paginator. When a use

Re: languages subdomain or directory

2011-03-30 Thread hunny
Following might help: http://stackoverflow.com/questions/1794412/adding-a-prefix-to-every-url-in-cakephp On Mar 30, 4:11 am, Carlos Eduardo Sotelo Pinto wrote: > I understand an dI like your point of view using directory languages for > seo, the question the will be > > What could it be the best

Re: languages subdomain or directory

2011-03-30 Thread hunny
Maybe this would guide you in the right direction http://stackoverflow.com/questions/1794412/adding-a-prefix-to-every-url-in-cakephp Thanks. On Mar 30, 4:11 am, Carlos Eduardo Sotelo Pinto wrote: > I understand an dI like your point of view using directory languages for > seo, the question the

Re: paginate conditions hasMany question

2011-03-29 Thread hunny
x27;contain'] = array('Payment') // make sure Member Model actAs Containable $results = $this->paginate('Member', array('Payment.status' => '1')); Thanks, hunny. On Mar 29, 4:11 pm, heohni wrote: > Hi, > > I struggle... > > I have

Prefixing site url with username

2011-03-26 Thread hunny
Hi, I want to prefix my site url, say www.example.com, with the username, say user1, so that the url looks like www.user1.example.com. Any ideas on how to achieve this. Also wondering if I will need to change HTML Helper so that all the links are prefixed with username. Thanx in Advance, Hunny

Re: session not saved in app controller

2011-03-14 Thread hunny
Not sure about the afterFilter function. Are you sure this is being invoked automatically? Otherwise you can probably right the same logic in beforeRender Function. On Mar 14, 6:51 am, cake-learner wrote: > I set up my app object in both beforeFilter and afterFilter callback > functions > > class

Re: COUNT between two Models

2010-07-26 Thread hunny
Check this link http://book.cakephp.org/view/1033/counterCache-Cache-your-count On Jul 26, 8:07 am, saavedrajj wrote: > Hi everybody, I have 2 models: Restaurant and Zone > > app/models/restaurant.php > class Restaurante extends AppModel { > >         var $name = 'Restaurant'; > >         var $b

Re: Problem related to Pagination and Binding

2009-11-11 Thread hunny
mentioned in the manual, passing the second argument as false to the following function will work: $this->Sales->contain(array, false); But I am not sure how to pass this argument in Pagination. Can anyone point me in the right direction. Thanks in Advance. On Nov 11, 1:58 pm, hunny wrote

Re: Problem related to Pagination and Binding

2009-11-11 Thread hunny
but in the following statement again it doesn't recognizes Withdrawn.property_id $this->paginate('Sales', array('Sales.property_id = Withdrawn.property_id')); On Nov 10, 3:18 pm, hunny wrote: > I have a Table named as sales. I have to join it with itself and > achieve the fo

Problem related to Pagination and Binding

2009-11-10 Thread hunny
I have a Table named as sales. I have to join it with itself and achieve the following query. $query = "SELECT `Sales`.`id` FROM `sales` AS `Sales` LEFT JOIN `sales` AS `Withdrawn` ON (`Sales`.`property_id` = `Withdrawn`.`property_id`) WHERE `Sales`.`date` = '2009-10-27

time out while uploading to database

2009-11-09 Thread hunny
, Hunny. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@google

Re: Self Join query

2009-09-29 Thread hunny
'conditions' => > array('User.id' => 2))); > > Friendly greetings, > Bert > > On Mon, Sep 28, 2009 at 1:43 PM, Bert Van den Brande wrote: > > > I would use the Containable behavior here, combined with a custom binding > > that you attach on th

Re: Self Join query

2009-09-28 Thread hunny
On Sep 28, 2:19 pm, Aivaras wrote: > Hey, take a look at > this:http://voveris.eu/2009/09/05/left-join-with-cakephp/I am sure you find > this > handy. > > On Mon, Sep 28, 2009 at 12:04, hunny wrote: > > > Hi All, > > > I am new to cakephp. I would lik

Re: Doubt in cake php

2009-09-28 Thread hunny
On Sep 25, 10:27 am, John Andersen wrote: > Look into the controllers method "requestAction", which allows you to > retrieve the list of clubs in a view! > Enjoy, >    John > > On Sep 24, 11:59 am, hunny wrote: > > > Hi Guys, > > > I am new to cak

Self Join query

2009-09-28 Thread hunny
Hi All, I am new to cakephp. I would like to execute the following SELF Join query. SELECT B.* FROM `users` AS A LEFT JOIN `users` AS B ON A.id = 2 where A.company_id = B.company_id Could some one guide or refer some tutorials, on how to achieve this in cake php. Thanks in advance --~--~-

Doubt in cake php

2009-09-24 Thread hunny
Hi Guys, I am new to cakephp. I am having the following issue: I am displaying list of checkbox containing clubs to a login user. The list of clubs I am passing through the models via controllers in the traditional way. Now the logged in user should see his list of clubs automatically ticked. T