Re: Email Notification Problem

2009-02-11 Thread Kyle Decot
For anyone that is attempting the same thing as me, I solved the problem by doing: App::import("Component","Email"); $this->Email = new EmailComponent(); $this->Email->startup($this); --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: How to use cakephp core utility library (Set::combine ) to transform array?

2009-02-11 Thread brian
On Thu, Feb 12, 2009 at 1:09 AM, mscdex wrote: > > On Feb 11, 11:58 pm, Andre wrote: >> Hi all, >> Can anyone help on writing the snippet using cakephp core utility >> library to combine array? > > If you look at Set::combine (http://book.cakephp.org/view/662/ > combine), you'll notice that both

Re: Cron Job Hostgator

2009-02-11 Thread Kyle Decot
I've put what you suggested into my Cron Manager on my HostGator admin panel but I am receiving an email that says: TERM environment variable not set. 1 Any ideas? Thank you as always! On Jan 21, 2:53 am, Martin Westin wrote: > You type (paste) something like this into a terminal window: > >

Re: How to use cakephp core utility library (Set::combine ) to transform array?

2009-02-11 Thread mscdex
On Feb 11, 11:58 pm, Andre wrote: > Hi all, > Can anyone help on writing the snippet using cakephp core utility > library to combine array? If you look at Set::combine (http://book.cakephp.org/view/662/ combine), you'll notice that both the path for the key and/or the path for the value can be s

Re: paginate with "having"

2009-02-11 Thread brian
On Thu, Feb 12, 2009 at 12:43 AM, mscdex wrote: > > On a somewhat unrelated note, your use of the avg() (or any other) > mysql function in the field list will make the result of that function > be stored in index zero of the array returned after executing the > pagination query. There's several w

Errors in PDF Generated with TCPDF

2009-02-11 Thread AL
Hello, I am using the TCPDF method published in the Bakery to generate pdfs. The pdf generated has this error Too Many Operands. Also when the file was opened initially, the content is visible but with error, part of the content on page 3 is rendered on page 2. But when I start to scroll to the

Re: custom error pages -> how to make cake redirect to another page

2009-02-11 Thread mscdex
On Feb 11, 9:35 pm, MarcS wrote: > Hello everyone, > > I know that I can change the default cake error messages by changing > the templates for them. > Is there a way so I can configure cake to redirect to another page > when I specify the URL? I think this may help you: http://cakebaker.42dh.c

Re: paginate with "having"

2009-02-11 Thread mscdex
On Feb 11, 6:21 pm, welzie wrote: > What I don't know is how to get the "having" to work.  Please help. Have you tried adding a condition to your condition subarray in your controller's $paginate variable that says: "1=1 GROUP BY candidates.id HAVING avg_overall_rating > 3" e.g. var $paginate =

How to use cakephp core utility library (Set::combine ) to transform array?

2009-02-11 Thread Andre
Hi all, Can anyone help on writing the snippet using cakephp core utility library to combine array? I want to get this array: Array ( [13] => Chang, Jonathan-Chinese [28] => Hidayat, Alexander-Chinese ) >From the following array possibly, using Set:extract or Set::combine? Array ( [

Re: load view in iframe

2009-02-11 Thread brian
On Wed, Feb 11, 2009 at 9:30 PM, mscdex wrote: > > On Feb 11, 6:05 pm, brian wrote: >> But, if anyone knows how to get an iframe to load an admin view, I'd >> love to know. > > I'm wondering if it's an issue with the iframe not having the proper > authentication cookies set somehow. What browser

paginate with "having"

2009-02-11 Thread welzie
I am trying to use paginate for a paged, sortable, searchable list of candidates. Below is an example of the query that I would like paginate to execute. select candidates.name, avg(candidate_ratings.overall_rating) as avg_overall_rating from candidates join candidate_ratings on candidates.id =

dashes in action names

2009-02-11 Thread spence
Hi, Are you allowed to use dashes in action names. IE: domain.com/ controllerName/action-name I know underscores work, but I did not have any luck with dashes? Do you need to configure something for it to work? Thanks, Spence --~--~-~--~~~---~--~~ You received t

custom error pages -> how to make cake redirect to another page

2009-02-11 Thread MarcS
Hello everyone, I know that I can change the default cake error messages by changing the templates for them. Is there a way so I can configure cake to redirect to another page when I specify the URL? --~--~-~--~~~---~--~~ You received this message because you are s

Re: load view in iframe

2009-02-11 Thread mscdex
On Feb 11, 6:05 pm, brian wrote: > But, if anyone knows how to get an iframe to load an admin view, I'd > love to know. I'm wondering if it's an issue with the iframe not having the proper authentication cookies set somehow. What browser(s) have you tried the admin view with? If you're trying to

Alternative Routing for RSS

2009-02-11 Thread maestro777
I'm trying to create an alternative routing for my RSS feed. In my Route config, I have the following: Router::connect('/presses/rss', array('controller' => 'presses', 'action' => 'rss_feed', 'url' => array('ext' => 'rss')

Re: first program in cakephp

2009-02-11 Thread Son Dat Giang
Yeah, and you have to build your own application from cake. And you should try http://book.cakephp.org/view/330/Creating-the-Blog-Database to build your 1st cake app with database. Good luk - Best regards ! Giang Son Dat Mobile: +84 988114164 Email giangson...@gmail

Re: odd database problem

2009-02-11 Thread mscdex
On Feb 3, 9:30 am, hellfish wrote: > The tables are there, the app does connect without error but all I get > is the "Missing Database Table". How are you importing/adding the tables to the database on the ISP's end? Did you do an export (using PHPMyAdmin for example) from your local database an

Re: view pdf files?

2009-02-11 Thread justclint
Thanks Brian. That helps a lot. The only thing Ive been using webroot for was just images and my ccs and js. I didnt realize it was meant to be (literally) the webroot. This is the first MVC framework I've used. Well my forms finally link correctly now. However I did notice one little detail. It

Re: Validation rule with or

2009-02-11 Thread Smelly_Eddie
I finished a quick mockout of the code for my article. I am still adding the finishing touches, but you can get the idea. The one main change I hope to make by the time this gets read is to handle all the logic upfront, and only once, instead of for each field. So here it is.. Validating depende

Re: load view in iframe

2009-02-11 Thread brian
I just figured it out. I removed the 'admin' => 1 from the route and the 'admin_' from the view filename and it worked. Like a charm, in fact. But, if anyone knows how to get an iframe to load an admin view, I'd love to know. On Wed, Feb 11, 2009 at 5:19 PM, brian wrote: > Can someone point out

Re: help with complex condations brian-9

2009-02-11 Thread monirr444
Thank you Man your The besst monirr444 wrote: > > here is the code i want to search but not inactive ones i have this code > so far it wont work > thank you helping the other time > if u can help with that would be great > > function search($item = null) { >$it

Re: can sombody help me here plz

2009-02-11 Thread monirr444
ok here it is this is in my public website its search thing to search recipes i put these 3 condations it works fine but only things i dont want them to see the inactive recipes there is field active when is active its "1" when its not its '0' when i search it show all the inactive one i wanna

Re: help with complex condations brian-9

2009-02-11 Thread Martin Radosta
Try this: function search($item = null) { $item = $this->params['url']['q']; $recipes = $this->Banco->find('all', array('conditions' => array( 'AND' => array( 'OR' =>array( 'Recipe.name LIKE' => '%' . $item . '%',

Re: switching databases on dev and production

2009-02-11 Thread BrendonKoz
I'm looking in to using Capistrano (or Fredistrano, built with CakePHP - http://code.google.com/p/fredistrano/) to automate this task, if possible. I don't know much about these tools, but I *think* they're capable of automating these tasks without creating code that gets sent to the server (thou

Pagination Order: Title ASC or Date DESC seems to break

2009-02-11 Thread Mike Cook
I've been having some trouble with the paginator when using a different sort order on two links. 'Title' needs to default to ASC, which Cake does. 'Date' needs to default to DESC, by default it doesn't but using $paginator->link it works; $paginator->link('Date', array('sort' => 'date', 'directi

load view in iframe

2009-02-11 Thread brian
Can someone point out the (I'm sure) obvious thing I'm missing to get a view to load in an iframe? I'm trying to create an interface to SwiftMailerComponent which has batch sending capabilities. It can also print out a progressive list of recipients and whether the message was successfully sent o

Re: can sombody help me here plz

2009-02-11 Thread Miles J
Can you tell as what exactly your trying to query, OR what the query should look like. --~--~-~--~~~---~--~~ 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

Re: getting information from all your plugins

2009-02-11 Thread Matt Curry
Since you asked...it depends... If this is an system you're going to be distributing and others will write plugins for it (like Wordpress), then I would assume the plugin would need to be installed/activated somehow (meaning NOT just dropped into the plugin dir). In which case you could read the

can sombody help me here plz

2009-02-11 Thread monirr444
here is the code i want to search but not inactive ones i have this code so far it wont work function search($item = null) { $item = $this->params['url']['q']; $recipes = $this->Recipe->find('all', array('conditions' => array( 'OR' =>array( 'Recipe.name L

Re: php|tek - any CakePHP devs going to the conference?

2009-02-11 Thread NicholasZ
I am attending ... my first PHP conference ever. Looking forward to it greatly! On Feb 11, 10:30 am, BrendonKoz wrote: > ...because apparently there's a "Hackathon" going on.  Both symfony > and Zend Framework (as well as Solar) are represented, so I was just > curious.  For more information:ht

Re: getting information from all your plugins

2009-02-11 Thread Evert
Hmm, for some reason everybody on IRC is telling me to not use controllers for that. Most say I should use views and some say I should use models. What do you think? And why? If I should use views, then should I use elements or what? That would kinda suck, cause most plugins have just one menu-it

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread Miles J
Anyone have an idea how to do the .htaccess? --~--~-~--~~~---~--~~ 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 t

Re: getting information from all your plugins

2009-02-11 Thread Matt Curry
You can pass a second value to init, which is the type. Not really clear what the options are, but I think "Controller" would work. Your code looks fine, although you don't need to call constructClasses and Component->initialize just to get the menu items. Although maybe you're doing something

Re: odd database problem

2009-02-11 Thread hellfish
I'm not using any prefixes on the tables. I'm sure I can connect to the DB because if I change any of the DB connection params I get errors (I suppose that this is a good way). Debugging is also set to level 2 :| On Feb 4, 4:08 pm, Smelly_Eddie wrote: > Are you using different prefixes for th

Re: getting information from all your plugins

2009-02-11 Thread Evert
What do you think about this code? plugins = Configure::listObjects('plugin'); $cnt = count($this->plugins); for ($i=0;$i<$cnt;++$i) { $this->plugins[$i] = Inflector::camelize($this->plugins[$i]);

HABTM Search Problem

2009-02-11 Thread Jesse
I know that HABTM problems are pretty frequnt. I've been doing lots of research and almost got this figured out. A little boost would really be appreciated. The Downlow... Merchants Merchants hasMany Addresses Merchants hasMany Coupons Coupons HABTM tags tags HABTM coupons I've got a search for

Re: getting information from all your plugins

2009-02-11 Thread Evert
It's not working and from what I can understand from the API, that function only works with Model and AppModel. But, I'll try other things with ClassRegistry, thanks anyway. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: switching databases on dev and production

2009-02-11 Thread gerhardsletten
Read this today: switch($_SERVER['SERVER_NAME']){ case ‘digbiz.localhost’: $this->default = $this->dev; break; case ‘digbiz.example.com’: $this->default = $this->prod; break; default: // we are likely baking, use our local db $this->default = $this->dev; } via http://edwardawebb.com/programming

help with complex condations brian-9

2009-02-11 Thread monirr444
here is the code i want to search but not inactive ones i have this code so far it wont work thank you helping the other time if u can help with that would be great function search($item = null) { $item = $this->params['url']['q']; $recipes = $this->Recipe->fi

Re: Logging system for CAKEPHP

2009-02-11 Thread mscdex
On Feb 11, 9:27 am, "marco.rizze...@gmail.com" wrote: > I have set these options but my error.log inside app/tmp/log   isn't > updated if I set the debug to 0. Looks like you'll need to override the default ErrorHandler. There is a blog post on how to do this here: http://teknoid.wordpress.com/2

Re: Linking three tables?

2009-02-11 Thread jtc2
Did you ever find a solution to this? I have a similar situation. Looks like your fourth table structure would be correct and I guess the table name could be whatever you want it to be though from what I've seen in cake conventions and practices (so far), it would be something like "employees_empl

Re: using ajax helper to reload an element

2009-02-11 Thread brian
On Wed, Feb 11, 2009 at 10:35 AM, Corey Crawford wrote: > > Hmm I think I see what you are saying, but I don't think that'll work > in an ajax request ... since it won't refresh the view, I need to > return only the html that's changed, not have the whole page refresh. > But this gives me an idea

GIT colne thechaw.com projects on Windows, tutorial, link, how to

2009-02-11 Thread majna
FYI: http://nathanj.github.com/gitguide/pushing.html This step can be skipped: "Now github has our public key, but we do not yet have github's. To remedy this, launch putty.exe, connect to github.com, and click Yes to accept github's public key. You can safely close the login window that opens up

Re: using ajax helper to reload an element

2009-02-11 Thread WebbedIT
As this is an AJAX request you are interfacing with the DOM and as such it does not matter whether the element to be updated was built with a view or element. As long as you have the link/observer calling a new instance of ajax.updater and have set it to update the required element id then all sh

Re: Validation rule with or

2009-02-11 Thread WebbedIT
Sounds like a more elegant approach than mine .. look forward to the article :) --~--~-~--~~~---~--~~ 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 unsubs

Re: Validation rule with or

2009-02-11 Thread Smelly_Eddie
Henrik: Seems like a pretty common need doesn't it. The solution is pretty simple. You call the same validation rule for every related field. $validate= array( 'field1'=>array('rule'=>'dependentFields'), 'field2'=>array('rule'=>'dependentFields') ) Then the method function dependenFields()

Re: Read Excel files

2009-02-11 Thread nAcho
Thanks, i'll try those. On 21 ene, 16:04, Martin Westin wrote: > I have usedhttp://sourceforge.net/projects/phpexcelreader > It is quite basic (and therefore lightweight) but does the trick so > far. > > Example from the dist: > > $data = new Spreadsheet_Excel_Reader(); > $data->read('jxlrwtest.

Re: using ajax helper to reload an element

2009-02-11 Thread Corey Crawford
Hmm I think I see what you are saying, but I don't think that'll work in an ajax request ... since it won't refresh the view, I need to return only the html that's changed, not have the whole page refresh. But this gives me an idea that I'll play with .. - Corey On Feb 10, 12:14 pm, brian wrot

php|tek - any CakePHP devs going to the conference?

2009-02-11 Thread BrendonKoz
...because apparently there's a "Hackathon" going on. Both symfony and Zend Framework (as well as Solar) are represented, so I was just curious. For more information: http://tek.mtacon.com/c/s/hackathon If you go to Chicago, I hope you guys blog about it so we can benefit too! :D I should hav

Auth redirect after controller based isAuthorized returns false

2009-02-11 Thread WebbedIT
Easy question, hopefully an easy answer ... Can I control what page Cake redirects a user too when authorisation fails due to my controller::isAuthoirzed() method returning false. At present it returns them to my home page, but would like it to return to the referring page ($this->referer()). --

Re: how to generate views for "recursive 2" associations?

2009-02-11 Thread die...@be
On Feb 11, 12:18 pm, "die...@be" wrote: > I think I'll try to fix the code and file a bug/patch I fixed it :) https://trac.cakephp.org/ticket/6087 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

Re: Prevent direct action request

2009-02-11 Thread guigouz
Check if function A2 couldn't be in the model. You can always prepend your function names with _ to make them private. function _A2() { } for example. On 11 fev, 11:22, AD7six wrote: > On Feb 11, 1:39 pm, Bogdan Ursu wrote: > > > Hey guys, > > > I have this setup: Controller C has two actions

Re: Stop code execution in beforeFilter() and render a view

2009-02-11 Thread grigri
Try this (it's just an idea, not tested) class SomeController extends AppController { var $_cancelAction = false; function beforeFilter() { if (!$answerMeTheseQuestionsThree) { // Aaarghh... $this->_cancelAction = $this->params['action']; return; } } function d

Re: Stop code execution in beforeFilter() and render a view

2009-02-11 Thread guigouz
And by the way, calling exit() after $this->render('view') used to work on 1.1 On 11 fev, 12:39, guigouz wrote: > Returning false keeps the flow running (cake will execute further > actions). > Any other workaround ? > > On 20 jan, 16:48, brian wrote: > > > I think you need to return false. > >

Re: Stop code execution in beforeFilter() and render a view

2009-02-11 Thread guigouz
Returning false keeps the flow running (cake will execute further actions). Any other workaround ? On 20 jan, 16:48, brian wrote: > I think you need to return false. > > On Tue, Jan 20, 2009 at 11:53 AM, Ron wrote: > > > I am creating a check in my app_controller beforeFilter() method and > > i

Re: Credit Card Expiration Date Validation

2009-02-11 Thread grigri
Here's an excerpt from a model I had for validating this sort of thing: class Order extends AppModel { var $name = "Order"; var $validate = array( // ... 'card_valid_from' => array( 'on' => 'card', 'allowEm

Re: Logging system for CAKEPHP

2009-02-11 Thread marco.rizze...@gmail.com
I have set these options but my error.log inside app/tmp/log isn't updated if I set the debug to 0. On Feb 10, 6:55 pm, mscdex wrote: > marco.rizze...@gmail.com wrote: > > Now I must create a logging system in order to register all possible > > errors (PHP execution error or MySQL error etc. )

Re: Help with calculated field being backticked to death

2009-02-11 Thread Martin Westin
Thanks a lot, That saved the day :) For reference, what worked was this set of parenthesis: '((Modelname.foreign_id>0)) AS result' /Martin On Feb 11, 12:40 pm, grigri wrote: > I haven't tried this in a while, but I seem to remember adding extra > parentheses helped. > > Try these: > > '(Mod

Re: Prevent direct action request

2009-02-11 Thread AD7six
On Feb 11, 1:39 pm, Bogdan Ursu wrote: > Hey guys, > > I have this setup: Controller C has two actions A1 and A2. In the view > of A1, in a loop I am doing requestAction(A2). My problem is that A2 > can also be requested directly, by writing in the address bar of the > browser: C/A2. > Is there

Re: Prevent direct action request

2009-02-11 Thread grigri
class ControllerC extends AppController { function A1() { // blablabla } function A2() { if (empty($this->params['requested']) || ($this->params ['requested']!=1)) { $this->redirect('http://www.milinkito.com/swf/bart.php?texto=I +will+not+call+this+action+directly'); }

Prevent direct action request

2009-02-11 Thread Bogdan Ursu
Hey guys, I have this setup: Controller C has two actions A1 and A2. In the view of A1, in a loop I am doing requestAction(A2). My problem is that A2 can also be requested directly, by writing in the address bar of the browser: C/A2. Is there anyway of preventing the execution of A2 directly? PS

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread grigri
I generally do what Martin suggests - with a redirect. However, you can speed up the process (for the user, not the developer!) like this: * Add an .htaccess rewrite rule to rewrite the url before it even hits cake. This is much faster that redirecting from a cakephp controller action. * With u

Re: Bug? Order isn't respected when doing a cascade delete

2009-02-11 Thread AD7six
On Feb 11, 5:04 am, nebbian wrote: > Hi, > > I have the following models: > > class Competition extends AppModel { > >         var $name = 'Competition'; >         var $useTable = 'Competition'; >         var $primaryKey = 'CompetitionID'; > >         var $recursive = 2; > >         var $hasMan

Re: first program in cakephp

2009-02-11 Thread dr. Hannibal Lecter
Hmmm, well what did you expect? CakePHP is a framework, not an application. http://book.cakephp.org/view/9/where-to-get-help On Feb 11, 9:12 am, kapil wrote: > i want to run my first cakephp program. but after installation nothing > is happened just database is connected nothing > more. plz

Re: Help with calculated field being backticked to death

2009-02-11 Thread grigri
I haven't tried this in a while, but I seem to remember adding extra parentheses helped. Try these: '(Modelname.foreign_id>0 AS result)' '(Modelname.foreign_id>0) AS result' '((Modelname.foreign_id>0) AS result)' '(((Modelname.foreign_id>0) AS result))' One of them _should_ work hth grigri On

Help with calculated field being backticked to death

2009-02-11 Thread Martin Westin
Hi, I am trying to order by a calculation (in a pagination) but my calculation is being backticked to death. I can't find a way to write this so that is works. I have: var $paginate = array( 'Modelname' => array( 'fields'=>array( 'Modelname.id',

first program in cakephp

2009-02-11 Thread kapil
i want to run my first cakephp program. but after installation nothing is happened just database is connected nothing more. plz help me thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gro

Re: how to generate views for "recursive 2" associations?

2009-02-11 Thread die...@be
I've been going through the sources and I think I've found out why cake behaves like this. Check https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/console/libs/tasks/view.php#L372 It seems that here only first level associations are set, independent of any $recursive parameter. I think

Skipping Validation on Date Fields

2009-02-11 Thread overture
I am having issues with validation on date fields. I need to ignore validation for a date field, however, I have tried everything and can't find a solution. I have changed the validation on the model to:- 'actual_start_date' => array( 'rule'=>'date', 'required' => false, 'allowEmpty' => t

Re: how to generate views for "recursive 2" associations?

2009-02-11 Thread die...@be
On Jan 26, 4:52 pm, RoVo wrote: > Hi Dieter, > > an example. We have 3 models (HABTM): > Posts <-> PostsTag <-> Tag > > If I bake only Posts and Tag (model, controller and views), I get a > results like yours . NO related Tags > > NOW I bake the PostsTag-model with belongsTo Post and belongsTo Ta

Re: How to do Data Sanitization in CakePHP 1.2.9?

2009-02-11 Thread majna
What you need is XSS cleanup. Try with http://bakery.cakephp.org/articles/view/brita-component-with-html-purifier You can use Sanitize::stripScripts(), but htmlpurifier is much better. On Feb 11, 7:13 am, Yogesh wrote: > Hi, > I want to avoid the script tag so that no one do the hack or insert

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread Son Dat Giang
I have my URL using paginator like: http://localhost/accounts/index/page:1/sort:Account.cutoff_time/direction:asc/ So if I want to attach more parameters like keyword (for example), I have URL like: http://localhost/accounts/index/page:1/sort:Account.cutoff_time/direction:asc/keyword:sport if yo

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread Miles J
@majina - I know that, but I need to CREATE the named params from the get or post. @martin - Yeah thats what I was thinking, just wondering if theres another way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: switching databases on dev and production

2009-02-11 Thread majna
...Like this: if (env('SERVER_ADDR') == '127.0.0.1') Configure::write('WebApp.mode', 'devel'); On Feb 11, 9:05 am, Braindead wrote: > Instead of changing a value in core.php you could switch the database > depending on the current DOCUMENT_ROOT or SERVER_NAME or some other > server variable tha

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread majna
http://book.cakephp.org/view/166/Pagination-in-Views To pass all URL arguments to paginator functions, add the following to your view: $paginator->options(array('url' => $this->passedArgs)); On Feb 11, 9:40 am, Miles J wrote: > So I have a search/browse system thats plugged into pagi

Re: Turning $_GET/$_POST into named params

2009-02-11 Thread Martin Westin
Hi Miles, One way that works really well is to have a "proxy" action accepting the initial search. This action reorganizes the get or post parameters into named ones and redirects to the "real" action. It sound a bit convoluted but it is a pretty common technique that offers a lot of flexibility

Re: Curious problem with img, css, and js in plugin

2009-02-11 Thread nomen
¿Nobody has this problem? ¿Nobody has idea about what should be the problem? On 6 feb, 10:52, nomen wrote: > Hello everyone: > >    I am developing a plugin and i have a curious problem. >    In my first version I've got all the img, js and css in webroot. >    Rereading the doc I have seen that

Re: Firefox Search Engine Plug-In

2009-02-11 Thread j0n4s.h4rtm...@googlemail.com
Thanks both of you. Do not fight. Thanks for contributions, helps a lot. --~--~-~--~~~---~--~~ 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 f

Re: Auth problem, login not working.

2009-02-11 Thread Son Dat Giang
Everything looks ok. And I guess something as follow: 1. Is your users table has both username and password fields. 2. How about the hash password stored after registration action. 3. Try this code in Users::login action, you should remove comment at //print_r($user) for debug if(!empty($this->

Turning $_GET/$_POST into named params

2009-02-11 Thread Miles J
So I have a search/browse system thats plugged into pagination. Everything works fine as a $_POST, the data is returned and paginated BUT the second I resort the results using the pagination, I lose all the search queries/terms. How can I turn $_GET or $_POST into named params so that they are co

Re: switching databases on dev and production

2009-02-11 Thread Braindead
Instead of changing a value in core.php you could switch the database depending on the current DOCUMENT_ROOT or SERVER_NAME or some other server variable that fits for the distinction between development server and production server. That's the way I do it and it works very well for me. --~--~---