Re: Unit Testing Emails

2007-04-04 Thread Felix Geisendörfer
Another thought about Unit testing emails: One should not actually test for mails "being actually sent" on application testing level. Testing that the EmailComponent works correctly should be part of the core tests. Afaik those do not exist yet, but if somebody is looking into writing code that

/app/webroot access & css.php

2007-04-04 Thread joe
Hi, I am running version 1.1.12.4205. When I access "/files" (w/o the trailing slash), it redirects to "/app/ webroot/files/". Why is it doing this? Something with the .htaccess file? What do I have to change to prevent this? Also, hitting /app/webroot/css.php spits out an error page... which

Re: How to restrict cakephp to certain sections of your site?

2007-04-04 Thread Dr. Tarique Sani
On 4/5/07, BlenderStyle <[EMAIL PROTECTED]> wrote: > http://domain.com/ (Cake installation) > http://domain.com/project1 (some non-Cake website) > http://domain.com/project2 (another Cake website) I would suggest that for keeping your real document root clean (and doing what is possible) http://

Re: How to restrict cakephp to certain sections of your site?

2007-04-04 Thread BlenderStyle
I like the approach of putting everything in webroot - that makes sense. But then the URLs turn out like http://domain.com/app/webroot/subfolder/ Is there a clean, Cake friendly way, to have a Cake installation at the root (http://domain.com), and multiple Cake and non-Cake sites underneath that

Can we stop page loading while populating s with onload events?

2007-04-04 Thread skyblueink
Using AJAX and onLoad event, we do populating many s and it generally takes relatively long time to complete the page loading, which makes the STOP button indispensable. The following code generates 9 s and 9 onLoad events to populate them. It works great, but once the onLoad events are fired, th

Re: Dynamic Images

2007-04-04 Thread Chris Lamb
"rtconner" <[EMAIL PROTECTED]> wrote: > I'm certainly open to tips on best practices and all. Depends how dynamic you mean. You will definately want some caching if the images can be reused, otherwise a DoS attack is trivial. I've used lighttpd's X-Send-File[0] for serving the files before. [0]

Ajax validate effect

2007-04-04 Thread pixelclub
Hey all, I was wondering how to "highlight" the input fields that don't validate after submitting a form. Updating one div which contains the error messages works and color fading it, but can't seem to figure out how to do it based on the validation results. Thanks --~--~-~--~~---

Validation: beforeSave and setting fields

2007-04-04 Thread Tony
I am looking for an answer related to validation and haven't been able to track it down. I am using cake v1.1.13.4450 and all validation is done at the model level using beforeSave(). The goal is to invalidate and then prepopulate a field so that it will display with an error but will have the co

Re: CakePHP Cant Bake

2007-04-04 Thread rtconner
I believe its a known bug. It is fixed in the latest nighty build of both 1.1 and 1.2 versions of cake. Download that and you should be ok. On Apr 4, 4:42 pm, "meloncolie" <[EMAIL PROTECTED]> wrote: > Im having an error when I begin creating a Model > > here is the path of the Image > > http://

Dynamic Images

2007-04-04 Thread rtconner
It seems I'm going to have to work with a few dynamic images. I hate doing that, but it seems like it'll have to be done. >From searching, it seems there used to be a tutorial here: http://wiki.cakephp.org/tutorials:dynamic-image, which is no longer there. Can we recover this tutorial? I would li

Struggling greatly with validation

2007-04-04 Thread Michael Tuzi
I am new to cake and have been working with it for over a month. I'm trying to do form field validation and I keep running into difficulties. I have one form that has fields that are not required for submission, but some of the un-required fields are dependent on other un-required fields. Because

Re: Looking for Paid Help

2007-04-04 Thread rtconner
Oooh you could be the first company to post on Snooks With Cake site. How exciting. http://withcake.com/ On Apr 4, 5:41 pm, "Anthony" <[EMAIL PROTECTED]> wrote: > I hope this doesn't fall under the category of SPAM, as it is a > legitimate posting and I feel it is the best place to ask. > > I o

CakePHP Cant Bake

2007-04-04 Thread meloncolie
Im having an error when I begin creating a Model here is the path of the Image http://download-v5.streamload.com/63053abb-0531-437b-ba50-8d7fe3c677a8/meloncolie/Hosted/cake_error.jpg Im using PHP 5 version/Windows XP as OS... Stable Version of Cake Please Help Thanks :) --~--~-~

Looking for Paid Help

2007-04-04 Thread Anthony
I hope this doesn't fall under the category of SPAM, as it is a legitimate posting and I feel it is the best place to ask. I own a web design & development firm and we use Cake PHP for a variety of different projects. We are currently looking for somebody who can work at least 20 hours a week dur

Re: How to link the CSS

2007-04-04 Thread gerbenzomp
> background: url(/img/template/content_box/big-content_box-bg.jpg) Why do you keep your templates in the img folder? If you use more then one template of theme, you should take a look at the themeableView class: http://abing.gotdns.com/posts/2006/themeable-view-class-for-cakephp/ On 5 apr, 0

Re: subfolders in elements folder?

2007-04-04 Thread gerbenzomp
Ok, I described the issue: https://trac.cakephp.org/ticket/2345 Would be great if this enhancement could be made. For now, maybe the only solution is to use prefixes. Gerben. On 5 apr, 00:23, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > Nope, I already tried, but doing: > > var $components = array

Re: How to link the CSS

2007-04-04 Thread Olwen Williams
Images used in css are relative to the the location of the css File On 05/04/07, rtconner <[EMAIL PROTECTED]> wrote: > > Same problem here. I still dont know the answer, but putting the > images in my css folder works. > > Anyone have other ideas or practices they use? > > > On Mar 9, 1:55 am, "

Re: Unit Testing Emails

2007-04-04 Thread Langdon Stevenson
Hi Zach > Just be aware that if you can't run Fakemail on port 25 then you need > to specify the port in PHP to send the email from. The EmailComponent > and the PHP mail() function don't let you do that. Thanks for the warning. All of my projects are currently running on Cake 1.1.x.x with PHP

Re: subfolders in elements folder?

2007-04-04 Thread gerbenzomp
Nope, I already tried, but doing: var $components = array('widgets/wdgtRecentposts'); really doesn't work... I tried with a slash in front of the widgets folder as well. I would like to get this to work, because I use AD7six's "mini- controllers" method for widgets (http://www.noswad.me.uk/MiB

Re: Unit Testing Emails

2007-04-04 Thread Zach Cox
Just be aware that if you can't run Fakemail on port 25 then you need to specify the port in PHP to send the email from. The EmailComponent and the PHP mail() function don't let you do that. On 4/4/07, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > > Thanks for posting this link Felix. Fakemai

Re: Unit Testing Emails

2007-04-04 Thread Langdon Stevenson
Thanks for posting this link Felix. Fakemail looks like a grouse tool. I will definitely be adding it to my test suite. Regards Langdon Felix Geisendörfer wrote: > Haven't tried it, but this is the CGI / Python solution advocated by the > SimpleTest folks: > > http://www.lastcraft.com/fake

Re: subfolders in elements folder?

2007-04-04 Thread Samuel DeVore
try it, if it doesn't work look for a ticket at trac.cakephp.org, if there isn't one make one Sam D On 4/4/07, gerbenzomp <[EMAIL PROTECTED]> wrote: > > It's good to know there's a way to customize the paths for models, > views and controllers (I might use that option as well), but is there > RE

Re: subfolders in elements folder?

2007-04-04 Thread gerbenzomp
It's good to know there's a way to customize the paths for models, views and controllers (I might use that option as well), but is there REALLY no way to organize components in subfolders? That would really be a solution for me, because I use components a lot. Anyway, the elements solution is alr

Re: self-join cake recipe?

2007-04-04 Thread Chris Hartjes
Thank you gwoo and John for pointing out to me when a self-join is cool and how to do it with CakePHP. You should learn something new every day. :) -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.n

Re: self-join cake recipe?

2007-04-04 Thread gwoo
Chris, array('className'=>'Category', 'foreignKey'=>'category_id')); var $hasMany = array('ChildCategory'=>array('className'=>'Category', 'foreignKey'=>'category_id')); } ?> You can see that the className is staying the same so it will use the current model. The alias, ParentCategory and Chil

Re: self-join cake recipe?

2007-04-04 Thread John David Anderson (_psychic_)
On Apr 4, 2007, at 2:32 PM, Chris Hartjes wrote: > > On 4/4/07, John David Anderson (_psychic_) <[EMAIL PROTECTED]> > wrote: >> >> (Self joins need not always be HABTM) >> >> -- John > > That's cool and everything, but can someone provide me with an example > of when a self-join is needed? I'

Re: self-join cake recipe?

2007-04-04 Thread Chris Hartjes
On 4/4/07, John David Anderson (_psychic_) <[EMAIL PROTECTED]> wrote: > > (Self joins need not always be HABTM) > > -- John That's cool and everything, but can someone provide me with an example of when a self-join is needed? I'm curious. -- Chris Hartjes My motto for 2007: "Just build it, d

Re: self-join cake recipe?

2007-04-04 Thread John David Anderson (_psychic_)
On Apr 4, 2007, at 2:24 PM, Chris Hartjes wrote: > > On 4/4/07, codingisfun <[EMAIL PROTECTED]> wrote: >> >> Does somebody has some kind of recipe for a model / controller / view >> for a database table with a self-join ( table , id, parent_id)? I >> found some discussions about how to code the

Re: self-join cake recipe?

2007-04-04 Thread Chris Hartjes
On 4/4/07, codingisfun <[EMAIL PROTECTED]> wrote: > > Does somebody has some kind of recipe for a model / controller / view > for a database table with a self-join ( table , id, parent_id)? I > found some discussions about how to code the model. But i do not see > the complete picture in combinati

Re: self-join cake recipe?

2007-04-04 Thread John David Anderson (_psychic_)
On Apr 4, 2007, at 1:24 PM, codingisfun wrote: > > thank you for your answer, but is does not say anything about a self- > join. A self join is just a relationship that ties a model to itself. You can use hasMany, for example to tie a model to itself, just make sure you have it keyed. Apple

Re: self-join cake recipe?

2007-04-04 Thread codingisfun
thank you for your answer, but is does not say anything about a self- join. On 4 apr, 20:58, "rtconner" <[EMAIL PROTECTED]> wrote: > I don't know about any self-join tutorials, but here is a link to the > best cake relationship mapping example I've > found..https://trac.cakephp.org/wiki/docs/mo

Re: Unit Testing Emails

2007-04-04 Thread Felix Geisendörfer
Haven't tried it, but this is the CGI / Python solution advocated by the SimpleTest folks: http://www.lastcraft.com/fakemail.php -- Felix -- http://www.thinkingphp.org http://www.fg-webdesign.de Zach Cox wrote: > Turns out it's pretty easy to roll your own sendmail repl

Re: Unit Testing Emails

2007-04-04 Thread Zach Cox
Turns out it's pretty easy to roll your own sendmail replacement: http://gregmaclellan.com/blog/sendmail-wrapper/ On 4/4/07, Chris Lamb <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > I develop on a Mac and don't really want to set up a mail server and > > prog

Re: self-join cake recipe?

2007-04-04 Thread rtconner
I don't know about any self-join tutorials, but here is a link to the best cake relationship mapping example I've found.. https://trac.cakephp.org/wiki/docs/model On Apr 4, 12:40 pm, "codingisfun" <[EMAIL PROTECTED]> wrote: > Does somebody has some kind of recipe for a model / controller / view >

Re: Error in model

2007-04-04 Thread rtconner
Might be an extra space at the end of one of your files. Make sure there is nothing after the ?> at the bottom of your Model and Controller classes. Not a space, not a line break.. nothing. >From looking at the error, its likely the space is at the bottom of models/post.php. On Apr 4, 12:27 pm,

Error in model

2007-04-04 Thread [EMAIL PROTECTED]
I have a problems on my cakephp, when I made a model like this .. class Post extends AppModel { var $name = 'Post'; } something errors happened. like this... Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\

self-join cake recipe?

2007-04-04 Thread codingisfun
Does somebody has some kind of recipe for a model / controller / view for a database table with a self-join ( table , id, parent_id)? I found some discussions about how to code the model. But i do not see the complete picture in combination with the controller and views. Thank you . --~--~-

Re: Unit Testing Emails

2007-04-04 Thread Chris Hartjes
On 4/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm using the new unit testing functionality in 1.2 with SimpleTest > and was wondering if anyone else has figured out a way to unit test > emails sent by the EmailComponent? > Does the unit testing functionality support mock objects? T

Re: CakePHP, mod_rewrite and mod_vhost_alias

2007-04-04 Thread Chris Lamb
MJ Ray <[EMAIL PROTECTED]> wrote: > mod_rewrite is a big gun aiming nearyour feet, while mod_vhost_alias > makes your feet dance. Expect to have to make a few attempts before > missing your feet. Made me smile :-) -- Chris Lamb, Cambridgeshire, UK GPG: 0x634F9A20 si

Re: Unit Testing Emails

2007-04-04 Thread Chris Lamb
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I develop on a Mac and don't really want to set up a mail server and > programmatically check a POP mail account in the unit tests. > > Does anyone have a clever solution for unit testing emails? Roll your own sendmail which intercepts STDIN and s

Unit Testing Emails

2007-04-04 Thread [EMAIL PROTECTED]
I'm using the new unit testing functionality in 1.2 with SimpleTest and was wondering if anyone else has figured out a way to unit test emails sent by the EmailComponent? Fakemail looks nice (http://www.lastcraft.com/fakemail.php) but EmailComponent (and PHP's mail() function as far as I know) do

Re: How to link the CSS

2007-04-04 Thread rtconner
Same problem here. I still dont know the answer, but putting the images in my css folder works. Anyone have other ideas or practices they use? On Mar 9, 1:55 am, "jaideepj" <[EMAIL PROTECTED]> wrote: > I have a doubt, > The thtml file has a link which refers href="/css/aptusa.css" its in > my

Submit POST Form Via Image Button

2007-04-04 Thread face7hill
Hello Folks, I have a simple form that I'm trying to submit via an AJAX POST. The following works for me: $ajax->submit('Submit', array('url' => '/ftac/send', 'update' => 'status_message')); BUT I want to use an image for the submit button. I don't want the native browser submit buttons to be

Re: subfolders in elements folder?

2007-04-04 Thread Samuel DeVore
I think he was asking about organizing you components folder with sub-folders On 4/4/07, majna <[EMAIL PROTECTED]> wrote: > > Works for views, models, controllers and (test it) components. > Put this to config/bootstrap.php > Only add your custom paths... > > $modelPaths = array(APP.'myFolder'.DS

Re: subfolders in elements folder?

2007-04-04 Thread majna
Works for views, models, controllers and (test it) components. Put this to config/bootstrap.php Only add your custom paths... $modelPaths = array(APP.'myFolder'.DS.'models'.DS); $viewPaths = array(APP.'myFolder'.DS.'views'.DS); $controllerPaths = array(APP.'myFolder'.DS.'controllers'.DS); $helper

Re: CakePHP, mod_rewrite and mod_vhost_alias

2007-04-04 Thread MJ Ray
"Jason" <[EMAIL PROTECTED]> wrote: > I am running into some issues regarding mod_rewrite, mod_vhost_alias > and cake. [...] > Can anyone shed some light on this issue? I think I needed to add a RewriteBase to cake's .htaccess files when installing onto a mod_vhost_alias-using server. I may have

Re: CakePHP, mod_rewrite and mod_vhost_alias

2007-04-04 Thread Seb
According to http://manual.cakephp.org/chapter/installing DocumentRoot should be /path_to_cake/app/webroot and not just / path_to_cake/app helps? Seb. On Apr 5, 1:49 am, "Jason" <[EMAIL PROTECTED]> wrote: > I am running into some issues regarding mod_rewrite, mod_vhost_alias > and cake. I am u

Google map via ajax request lets entire page crash...

2007-04-04 Thread MYRZ
Hi all, I implemented a Google map on a view which is loaded via ajax. The result is only not very statisfing... The entire page becomes white, and all i see is 'Loading...' (which stops after a minute or so saying connection to server pinged out). The odd thing is, when i just load the view via

CakePHP, mod_rewrite and mod_vhost_alias

2007-04-04 Thread Jason
I am running into some issues regarding mod_rewrite, mod_vhost_alias and cake. I am using the latest stable CakePHP and ran through the Blog tutorial. Basically, when I setup an explicit VirtualHost, it works. When I try to have mod_vhost_alias manage the vhost, it does not work. Here is the expli

Re: Associate two models without using the primary key

2007-04-04 Thread Gonçalo Marrafa
Thanks for quick reply. I know i can pass extra parameters. The thing is it doesn't work! I want to create a hasOne association. If i specify it as: in Person: $hasOne = array('User' => array('conditions' => array('Person.entity' => 'User.entity'))); It should create SELECT ... FROM person LE

Re: Associate two models without using the primary key

2007-04-04 Thread djiize
in manual: http://manual.cakephp.org/chapter/models section 4, you can pass extra parameters to associations On 4 avr, 17:06, Gonçalo Marrafa <[EMAIL PROTECTED]> wrote: > Hi. > > Can i associate two models using another field other than the primary > key? > > What i have is a set of entities that

Re: subfolders in elements folder?

2007-04-04 Thread Samuel DeVore
mainly I use it to keep admin stuff together, menu pieces together and form elements together I don't think it works for helpers or components (but does for vendors) On 4/4/07, gerbenzomp <[EMAIL PROTECTED]> wrote: > > Oops! I figured that wouldn't be possible, because I never saw anyone > do it

Re: sessions in database

2007-04-04 Thread jyrgen
Hi Majna, it's not that i want to check for expiration, but rather if a user is already logged in. (see above) i cannot simply test for sth. like $this->Session->read('logged_in') because this refers to the current session, which i am just about to construct... therefore i had to search all ex

Associate two models without using the primary key

2007-04-04 Thread Gonçalo Marrafa
Hi. Can i associate two models using another field other than the primary key? What i have is a set of entities that can access the system. They can be persons, units (and others). I have an entity table to associate the auth information with the correspondent subjects. Here's an example: enti

Re: subfolders in elements folder?

2007-04-04 Thread gerbenzomp
Oops! I figured that wouldn't be possible, because I never saw anyone do it. I'll try it! Good to hear you're doing it all the time, I thought this would be a really strange question ;) Is it also possible for components? Gerben. On 4 apr, 16:54, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > I

Re: subfolders in elements folder?

2007-04-04 Thread Samuel DeVore
I use sub folders all the time $this->renderElement('this/that/and/the/other/thing'); Did you try it and not have it work? On 4/4/07, gerbenzomp <[EMAIL PROTECTED]> wrote: > > Maybe a strange question, but is there a way I can have subfolders in > the elements folder? I have so many elements I

subfolders in elements folder?

2007-04-04 Thread gerbenzomp
Maybe a strange question, but is there a way I can have subfolders in the elements folder? I have so many elements I really need a way to organize them. Right now I give the elements a prefix_ but but putting them in subfolders would be so much easier, and easier to read. Or do I have to change t

Re: CakePHP Session expiring problems...

2007-04-04 Thread purepear
I admit i didn't read the whole discussion, but i think if you set define('CAKE_SESSION_SAVE', 'cake'); it might work( in /app/config/ core.php). Note that the default value is 'php' and thus all sessions will be managed by PHP and its default options. I'm not really sure what i'm saying because i

Re: what happened to bake.php

2007-04-04 Thread Daniel Hofstetter
It is a known bug and fixed in the nightly builds. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@goog

Re: sessions in database

2007-04-04 Thread majna
There is "$db->value(time())" wich fetch value from data field in session table... from libs/session.php: $db =& ConnectionManager::getDataSource('default'); $table = $db->fullTableName(CAKE_SESSION_TABLE); $db->execute("DELETE FROM " . $db->name($table) . " WHERE " . $db- >name($table.'.expires'

Re: LabelTag is not displayed (invisible text in browser)

2007-04-04 Thread szeta
I am using the default CSS coming with CAKE. Am I the only one with this problem? On 4 Apr., 14:37, "djiize" <[EMAIL PROTECTED]> wrote: > I think it's a CSS cause... > > On 4 avr, 13:43, "szeta" <[EMAIL PROTECTED]> wrote: > > > Hello alltogether, > > > Sometimes, Label Text and Headlines are not

Re: problem with html->link

2007-04-04 Thread djiize
if you uncomment BASE_URL, don't forget to delete .htaccess files in / /app and /app/webroot On 4 avr, 15:20, "andy corpes" <[EMAIL PROTECTED]> wrote: > Hi again Djiize > > I was looking in the wrong place, my define of the BASE_URL was commented > out!!! > > Things are looking a little different

Re: problem with html->link

2007-04-04 Thread andy corpes
Hi again Djiize I was looking in the wrong place, my define of the BASE_URL was commented out!!! Things are looking a little different now,, not quite correct, but it may be my own fault, at least i'm not so baffled. Thanks for leading me to the correct place. On 04/04/07, andy corpes <[EMAIL

Re: problem with html->link

2007-04-04 Thread andy corpes
Hi djiize, Here my baseurl setting define ('BASE_URL', env('SCRIPT_NAME')); is also tried define ('BASE_URL', "cake/index.php/".env('SCRIPT_NAME')); But it did not appear^to make any difference,, do i need to restart something to make this happen? On 04/04/07, djiize <[EMAIL PROTECTED]> wrote

Re: problem with html->link

2007-04-04 Thread djiize
If you want url like '/cake/index.php/...', you don't use mod_rewrite, you use Cake rewrite Have you correctly set the constant BASE_URL in core.php ? On 4 avr, 14:13, "andy corpes" <[EMAIL PROTECTED]> wrote: > Hi group, > > I'm having trouble with the URL's created by the HTML helper, and perhap

what happened to bake.php

2007-04-04 Thread [EMAIL PROTECTED]
when I use the latest version cakephp cake_1.2.0.4451alpha.zip, I can't use bake.php quite well ,it always make mistake when I try to build Model something like this "Fatal error: Class 'Model' not found in D:\AppServ\www\cake\cake \scripts\bake.php" --~--~-~--~~~---

Re: Autocomplete event

2007-04-04 Thread robert.fulcher
Maybe anyone has a suggestion on how to hook into the events properly...or maybe onblur is right? any help would be really appreciated. Thanks On 1 Apr, 20:51, "robert.fulcher" <[EMAIL PROTECTED]> wrote: > I am trying to run a script when theonblurevent occurs. I set this > up and it runs but

Re: LabelTag is not displayed (invisible text in browser)

2007-04-04 Thread djiize
I think it's a CSS cause... On 4 avr, 13:43, "szeta" <[EMAIL PROTECTED]> wrote: > Hello alltogether, > > Sometimes, Label Text and Headlines are not displayed in the browser, > although the text is 'there'. > > E.g.: > > > labelTag('table/field', 'Field-Name');?> > input('table/f

problem with html->link

2007-04-04 Thread andy corpes
Hi group, I'm having trouble with the URL's created by the HTML helper, and perhaps mod rewrite. My urls should look something like this:- http://ac85489m/cake/index.php/tblallrepositories/index when i construct a link using the html helper it generates a url like this:- http://ac85489m/TblAll

Re: Manually invalidating a form field (Cake 1.2)

2007-04-04 Thread jcsiegrist
Hi Preloader, in the model use $this->invalidate(string 'field',string 'errormessage); I do it in the beforeValidate callback of the model. I use it in a 1.2 cake project. :jc On 3 Apr., 19:35, "Preloader" <[EMAIL PROTECTED]> wrote: > Hi Christopher, > > no, I don't use $html->tagErrorMsg ...

LabelTag is not displayed (invisible text in browser)

2007-04-04 Thread szeta
Hello alltogether, Sometimes, Label Text and Headlines are not displayed in the browser, although the text is 'there'. E.g.: labelTag('table/field', 'Field-Name');?> input('table/field', array('size' => '60'));?> tagErrorMsg('table/field', 'Please enter the Field- Name.

Re: Components not loading

2007-04-04 Thread AD7six
On 4 abr, 12:48, "bit" <[EMAIL PROTECTED]> wrote: > That's what I thought. I guess it'd be good to point out then that I'm > getting this error: > Fatal error: Call to a member function on a non-object > > The line it refers to is: (in a private function that's called in > beforeFilter() of AppC

Re: Components not loading

2007-04-04 Thread bit
That's what I thought. I guess it'd be good to point out then that I'm getting this error: Fatal error: Call to a member function on a non-object The line it refers to is: (in a private function that's called in beforeFilter() of AppController) return $this->Acl->check($user, $aco); Another way

Re: cake-php on Gmane

2007-04-04 Thread Marcus
Nice! BTW, I think a CakePHP-Announcement-(List|Group) would be a great thing :) On 3 Apr., 23:51, Chris Lamb <[EMAIL PROTECTED]> wrote: > Cake-php, > > This list is now on Gmane, giving a few more methods for viewing the > contents: > > http://dir.gmane.org/gmane.comp.php.cakephp.general > > T

Re: layout needs variables from db

2007-04-04 Thread MYRZ
Hi all, I think i'm going for rrogers suggestion Thanx you all! On 4 apr, 11:24, "AD7six" <[EMAIL PROTECTED]> wrote: > On 4 abr, 07:01, "Chowsapal" <[EMAIL PROTECTED]> wrote: > > > I've also used: > > > $this->set('cities', $this->{$this->modelNames[0]}->query('SELECT id, > > title FROM ci

Re: Pagination - rendering the counter differently

2007-04-04 Thread MrTufty
Nope, that seems very simple! Thanks nate! On Apr 3, 6:34 pm, "nate" <[EMAIL PROTECTED]> wrote: > $params = $paginator->params(); > > echo $paginator->prev('<< Previous') . ' | '; > for ($i = 1; $i <= $params['pageCount']; $i++) { > if ($i == $params['page'

Re: Sessions

2007-04-04 Thread Olwen Williams
Perhaps I should explain more. I have index.php outputting the session id at the end with this code: echo "session id is ".session_id(); Before I log in I can call up different screens and the session id stays the same. Then I log in and the session id is still the same, but I when I go to a di

Re: sessions in database

2007-04-04 Thread jyrgen
here's a solution i found on php.net. it's definitely not smart, but works ok. $temp = mysql_query('SELECT * FROM sessions'); while ($row = mysql_fetch_array($temp)){ $variables = array( ); $a = preg_split( "/(\w+)\|/", $row['data'], -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT

Re: R: Included library

2007-04-04 Thread Davide
[EMAIL PROTECTED] wrote: > is better to modify app/config/core.php > and set > > define('DEBUG', 0); Yes, I know that this will hide me the warning and notice, but actually I'm in beta and I need the debug in order to trace some situations, even the configurations problems like that :) Tha

Re: Going crazy with an error!

2007-04-04 Thread [EMAIL PROTECTED]
Hi, problem solved, probably was a table I called 'objects'! Alberto On 3 Apr, 23:35, "Christopher E. Franklin, Sr." <[EMAIL PROTECTED]> wrote: > What version of cake? Can you post the code you have for > UserController and Models? What database tables do you have and what > is the structure

Re: layout needs variables from db

2007-04-04 Thread AD7six
On 4 abr, 07:01, "Chowsapal" <[EMAIL PROTECTED]> wrote: > I've also used: > > $this->set('cities', $this->{$this->modelNames[0]}->query('SELECT id, > title FROM cities as City')); All of these suggestions will give you a php error instead of a cake error message if cake detects anything is wro

Two new articles on nospace blog

2007-04-04 Thread m.sbragi
There are two new articles on nospace blog waiting for approval on bakery. 1. How to translate joomla templates to cakephp layouts. 2. Create a getLastUsedId function for your models. If you are interested on reading here are the links to articles list http://blog.nospace.net/?cat=3 --~--~-

R: Included library

2007-04-04 Thread m.sbragi
Hello Davide instead of putting a @ on functions in cake core files is better to modify app/config/core.php and set define('DEBUG', 0); that is the reccomended configuration for production site > -Messaggio originale- > Da: cake-php@googlegroups.com > [mailto:[EMAIL PROTECTE

Re: Components not loading

2007-04-04 Thread AD7six
On 4 abr, 10:27, "bit" <[EMAIL PROTECTED]> wrote: > I have this really weird bug in which my components aren't loading. > The really weird thing is that when I remove a hasMany relationship in > one of the models, this bug goes away. If cake is about to present you with a missingX error, compon

Included library

2007-04-04 Thread Davide
Good morning. I've released a site with cakephp. The structure is the canonical cake one www/ site/ app/ cake/ ... when I access the site it directly point to the site directory so I got url like http://site.domain.org/controller/param1/... Actually when I require a page, every c

Components not loading

2007-04-04 Thread bit
I have this really weird bug in which my components aren't loading. The really weird thing is that when I remove a hasMany relationship in one of the models, this bug goes away. In models/ride.php : var $hasMany = array( 'Registration' => array('className' => 'Registration'),

sessions in database

2007-04-04 Thread jyrgen
howdy, how do you check if a user with a particular id is already logged in ? it is that i want to prevent people from loggin in twice. of course i could search the sessions table, but i'm stuck with the fact that all session vars are serialized. has anybody come across this ? thanks for your