Hello all, I'm new here and to CakePHP! I keep running into the
error: Warning (512): Method SessionHelper::check does not exist [CORE/
cake/libs/view/helper.php, line 148]. Any ideas on how to fix this?
Thank you!
--~--~-~--~~~---~--~~
You received this message
Hello all, I'm very new to CakePHP, and I am getting: Warning (512):
Method SessionHelper::check does not exist [CORE/cake/libs/view/
helper.php, line 148].
Does anyone know how to fix this? Thank you.
--~--~-~--~~~---~--~~
You received this message because you
Hello all, I'm new here and to CakePHP! I keep running into the
error: Warning (512): Method SessionHelper::check does not exist [CORE/
cake/libs/view/helper.php, line 148]. Any ideas on how to fix this?
Thank you!
--~--~-~--~~~---~--~~
You received this message
@ Smelly_Eddie
Thanks for the reply but It wouldn't help.
I specifically mentioned the use of containable behavior
Smelly_Eddie wrote:
Absolutely.
$this->tble1->recursive=1;
$this->findAll('`tablw2`.`f1` LIKE \'%$val1.%'\' etc. ')
On Jun 18, 2:00 am, jaanu2121 <[EMAIL PROTECTED]> wrote:
Alright. So up until now I have been super happy with Cake vs. Ruby on
Rails. I have found an equivelent, or often better way of doing
things.
But now I'm stuck.
I'm trying to create a form which is for a model that hasMany
WebAddresses. I'm trying to use javascript to give the user the
ability
It would appear that the function ->_selectedArray() is missing from
cakephp 1.2
How should I gather the selected options for a HABTM association then?
=== cakephp 1.1 examples: ===
http://api.cakephp.org/1.1/class_controller.html#9acfedd26fc4259442b36690862115ee
$this->set('cCategories', $thi
When I run the Tree Behavior test case under MySQL 4.1.14, I wind up
with 54 passes, 52 fails and 1 exception.
When I run the same test case under MySQL 5.0.18 all tests pass.
In both cases, I am at the latest SVN update of 7210.
Can anyone else replicate this? Has there been a change as far a
> Maybe, but they don't make easy bedtime reading - they're just lists
> of bugfixes and enhancements.
Lol, no, not bedtime reading, but as someone who's been using the
branch forever, I ( and I shit you not ) check those two links every
morning in the 10 minutes while I wait for my carpool as we
I used it on one website with a lot of static pages. You can see the
breadcrumb in action here:
http://www.youngtravel.com/pages/geographies/africa_mid_east/botswana_chiefs_camp
I used a small element to build the crumbs.
here);
array_shift($path);
$url = '/';
$link = '
Haha, lol nice,
On Jun 18, 6:32 pm, "Jonathan Snook" <[EMAIL PROTECTED]> wrote:
> > Hey that works. Thanks. I'm surprised this is not documented though.
>
> There, now it is:http://manual.cakephp.org/view/99/introduction
--~--~-~--~~~---~--~~
You received this me
> Hey that works. Thanks. I'm surprised this is not documented though.
There, now it is: http://manual.cakephp.org/view/99/introduction
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to t
I've followed all the tutorials on the bakery by chris and on his
blog, so far I've just been testing this and I've run into this issue
once I try to "login":
Fatal error: Call to a member function on a non-object in app
\controllers\components\dark_auth.php on line 256
"$check = $this->controlle
On Jun 18, 5:41 pm, "Jonathan Snook" <[EMAIL PROTECTED]> wrote:
> While I haven't tried it, maybe give this a go in your action:
>
> function myaction(){
>
> $this->helpers[] = 'Time';
>
> }
>
> (I'm not entirely sure when helpers are instantiated but that seems
> like a viable solution.
Hey th
While I haven't tried it, maybe give this a go in your action:
function myaction(){
$this->helpers[] = 'Time';
}
(I'm not entirely sure when helpers are instantiated but that seems
like a viable solution.
--~--~-~--~~~---~--~~
You received this message because
On Wed, Jun 18, 2008 at 8:15 PM, Turnquist, Jonah <[EMAIL PROTECTED]> wrote:
> If it does not slow it down why don't all the helpers just all get
> loaded automatically? I mean, the Time helper is 538 lines of code.
> It must slow it down to load that into RAM and deal with it.
Your answer shows
> Did you try this in your index controller (assuming you are using 1.2):
>
> App::import('Helper', 'Time');
> $timeHelper = new TimeHelper;
No, I have not tried that. I am using 1.2. It still does not work
though. Here's my code:
controller:
class ScriptsController extends AppController {
On Wed, Jun 18, 2008 at 7:50 PM, Turnquist, Jonah <[EMAIL PROTECTED]> wrote:
>
> But that would include it into all the actions, not just the 'index'
> action which I need. How do I include it into in index action alone?
> I always worry about speed. Also, can I include it from the view?
> that
It this page styled right?
http://www.lodging-source.com/lw/
I just googled this.
My page looks like this, although the database is connected properly
so there is no issue with that.
Also, if anyone else is reading this for help, I put the following in
my cake .htaccess file:
RewriteEngine o
hello again guys
I grew a question (type: noobQuestion, cakeVersion: 1.2)
I need to include the Time helper in the 'index' action of the
'scripts' controller page. I understand I can put this in the
controller:
var $helpers = array('Time');
But that would include it into all the actions, not
:(
I'll simplify: I want to have the ability to CATCH sql errors (in my
error handler) irrespective of DEBUG levels.
Currently the only way this happens is in showQuery (trigger_error in
dbo_source.php) and that too when DEBUG > 1. This is my opinion should
be triggered along with rest of PHP erro
Yeh, the design isn't what I expected (and I'm still not %100 sure).
So the text has font colors and sizes. Is there a screenshot of what
it should look like? I use the web developer and it is picking up the
generic stylesheet.
However, I thought it was supposed to look more styled. Say, the list
I did it in the following way:
Router::connect('/video/:artistName/:videoTitle/', array('controller' =>
'videos', 'action' => 'searchByName'));
Then...
function searchByName(){
$Conditions = array('Video.urlName' =>
$this->params['videoTitle'],
Hi all,
When my users login, I want to redirect them to the page they were on
before they chose Login. This I was doing in beforeFilter() of
app_controller.php, by storing the current URL in the session.
However, some of my pages have multiple actions on them, which messes
this code up. For instan
Say you wanted to do validation on a users table, so in your model you
define in your beforeValidates function 2 rules, one to check if the
username already existed (for registering a new user), and one to
check if the username was present in the table (for logging in).
Instead of creating a coup
On Wed, Jun 18, 2008 at 2:31 PM, mGee <[EMAIL PROTECTED]> wrote:
>
> Any chance someone might have some input? It would be greatly
> appreciated.
>
> Peace
> Mike
I filed a ticket on your behalf about this:
https://trac.cakephp.org/ticket/4946
In the future, I suggest you file tickets when you
Well, I can't help much because I am also currently having a lot of
problems with the test suite, so for what it's worth -
I think SimpleTest 1.0.1 works because many of the tests do pass
without errors.
What I noticed is that if you are switching between cake's revisions,
make sure that the ca
Any chance someone might have some input? It would be greatly
appreciated.
Peace
Mike
--~--~-~--~~~---~--~~
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
T
Hello,
I want to map http:///comments//1 to
http:///comments//1.
Any hints on how to do this with routes?
--
Thanks & Regards,
Novice.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to thi
Absolutely.
$this->tble1->recursive=1;
$this->findAll('`tablw2`.`f1` LIKE \'%$val1.%'\' etc. ')
On Jun 18, 2:00 am, jaanu2121 <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Is it possible to define conditions on 2nd level (or higher order)
> associations in containable behavior?
>
> e.g. the model ass
Hi!
I have two tables:Student and profile with hasone association
Table Student: profile_id
Table Profile:id
And two models
Profile hasOne Student (fk:profile_id)
Student belongsTo Profile (fk:profile_id)
If i delete a profile the associated Student is deleted, but how can I
delete the associa
Hey Robert,
You've got it a bit backwards. If Item contains all the foreign keys,
then Item _belongsTo_ ItemType and ItemStatus. Type and Status would
both "haveOne" Item From the book's section on Associations :
belongsTo: "foreignKey: the name of the foreign key found in the
_current_ model
I'm having the same issue. I'm using shared hosting on a Linux server with a
default installation of cake 1.2 using app/webroot as my root directory. I
thought I'd be able to go through the code dropping echo/die statements to
find out what is driving this (I'm not using an IDE I can step
throu
Hello,
I must use a Windows IIS server with session.auto_start 1 in the
php.ini and I can't manage to use sessions.
When I look at the files in php\tmp they are empty (0Ko).
If I try to change the local value for the directory in the regedit,
with auto_start 0 it doesn't work either.
The only wo
Hi,
> I think the id field was just an example of an extra field. It's not
> necessary to make it work.
It is. But only if you are providing extra fields to save in the join
table.
> Besides, join tables should not have id, since
> the foreign keys forms its primary key.
AFAIK there is no need
On 17 jun, 16:44, davidpersson <[EMAIL PROTECTED]> wrote:
> I've got exactly the same problem and only came up with the same
> workaround..
> Hope anyone out there knows a solution for this.
I can't believe nobody has run into this before and found a better
solution!
Cheers,
J.
--~--~-~
hey guys,
I was wondering if anyone has had this problem. All my translations
are working except for those in the confirm messages part of the html-
>link. I'm looking at the source code in the browser and it's showing
me before every accent there is a & placed and that seems to be
the problem.
Hello all,
This is more of a database question but since this group contains a lot of
db experts as well, I am throwing it here as well.. I am having a table
which represents entities... User can upload entities(pics, videos etc).. i
want that no entity overwrite the other, but my entities can be
Frankly, that looks like a kludge. Are you certain that you require
these variables? Could you not simply use the existing array with its
key => values?
On Tue, Jun 17, 2008 at 7:31 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> thanks for your help,
> i solved it this way:
>
> for($i=0;$i$var_n
> Has anyone else encountered this problem?
Yes, see this thread: http://tinyurl.com/4mx6zq, or search for
"wordpress" in this group.
>From my experience installing WordPress into CakePHP webroot, if
the .htaccess in your /app/webroot/ is enabled and working correctly,
any requests to a /blog/ w
When sending email with the Email Component, some of my emails include
the following types of headers in the body of the message:
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Message-Id: <[EMAIL PROTECTED]>
Date: Wed, 18 Jun 2008 11:01:31 -0500 (CDT)
Anyone
Hello again,
The pagination links generated by 1.2 are 'host/search/page:2'
Is it possible to make this 'host/search/page:2#search_results' to
create a 'jump'?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I'm not entirely sure what finally fixed the problem but here's what I
have in my app/webroot/blog/.htaccess file:
# BEGIN WordPress
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
# END WordPress
-
I'm having a problem with the login redirect. everytime I login, it
redirects to /users/img/spacer.gif, which is a file in my img
directory. I'm using the built-in Auth login. no code in the login
action . . .
This is in my app_controller . . .
$this->Auth->loginAction = array('controller' => 'u
I have this now... how did you fix it ??
On May 26, 1:26 am, Kyle Decot <[EMAIL PROTECTED]> wrote:
> I am attempting to integrate Wordpress with CakePHP but I'm running
> into some problems. When I try to go to:
>
> http://www.affinityskateboards.com/blog/
>
> I get redirected to:
>
> http://www.
Hi,
I tried to search through the group archive but did not find any
solution. My problem is pretty simple and probably solution is also
simple for all who dealt with cake relations.
I have 3 database tables:
items with columns: id, type, status
item_types with columns: id, name
item_statuses wi
Hi all,
I'm new here... I'm considering moving to cakephp from kohanaphp, but
testing issues have me hesitant.
I previously had a Cake 1.2 RC1 install which I had been using with
the cake manual blog tutorial. I got to the "Testing" section of the
manual and followed the instructions to try out
With Changeset 7205 Model::find('all') stopped working.
This is maybe the reason why those tests fail.
Related:
https://trac.cakephp.org/ticket/4939
On Jun 18, 5:12 pm, aranworld <[EMAIL PROTECTED]> wrote:
> Very strange ... I'm on the same revision and am getting 52 fails.
>
> What database are
1. I can't recall which site I've used it on at the moment.
2. Crumbs aren't maintained across pages, so you have to rebuild the
list each time. That makes deleteCrumb unnecessary (although I could
certainly see an argument for it anyway).
-Matt
www.pseudocoder.com
leo wrote:
> I'm trying to m
Very strange ... I'm on the same revision and am getting 52 fails.
What database are you using?
-Aran
On Jun 18, 4:06 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> For me in rev 7206:
>
> 1/1 test cases complete: 106 passes, 0 fails and 0 exceptions.
>
> On Tue, Jun 17, 2008 at 11:24 PM
> It's not complete unstyled.
So the CSS files were loading correctly, but you were getting a design
that you weren't expecting?
If you aren't familiar with Chris Pedericks's Firefox, I'd suggest
installing it right now: http://chrispederick.com/work/web-developer/.
It can turn CSS on off with o
I'm trying to make some sense out of the two methods addCrumb and
getCrumbs. Okay, I haven't put them to the test yet, but I'm wondering
two things:-
1. Has anybody used them and can they link me to a realworld website.
2. Shouldn't there be a deleteCrumb function for the backwards nav?
--~--~---
Well, I appreciate the non-commercial environment of cake development
and the it-would-be-done-if-only-someone-would-volunteer-to-do-it
approach. I don't have an argument with that. I just want to see the
release notes that I was referred to by Mariano Iglesias who sadly has
not yet revealed his s
On Wed, Jun 18, 2008 at 10:09 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> https://trac.cakephp.org/timeline
> https://trac.cakephp.org/wiki/changelog/1.2.x.x
>
> All I've ever needed, all I've ever used :D
As loath as I am to argue with people (that's a joke, for those who
don't know me)
Thank you very much for answering me. It's been a while now (way too
much time in fact...) since I started to work on this basic paginated
listing with filter...Too bad that there is no system allowing you
(automatically) to associate your search criterias to the navigation
links. Seems like you h
Maybe, but they don't make easy bedtime reading - they're just lists
of bugfixes and enhancements. Surely there is a document, as intimated
by Mariano, that highlights important changes, perhaps even classifies
& indexes them.
I'd like to know to which release notes document Mariano was
referring
https://trac.cakephp.org/timeline
https://trac.cakephp.org/wiki/changelog/1.2.x.x
All I've ever needed, all I've ever used :D
On Jun 17, 8:40 am, leo <[EMAIL PROTECTED]> wrote:
> They are NOT release notes!
>
> You would have to be beyond the need for release notes to extrapolate
> this comment
Maybe it's naïve of me, but I just copy the new cake directory over
the old cake directory (well actually everything but app). I would
expect the app directory to be fairly inviolable by CakePHP. Sure,
there will be times when certain things change like the extension for
template (view) files, but
On Wed, Jun 18, 2008 at 9:15 AM, theandystratton
<[EMAIL PROTECTED]> wrote:
>
> Thanks guys, these are both great and give me some good insight. @Sam
> I really like the linking idea, thanks again.
>
> One other question then, does the app directory never need to be
> touched? The only thing that
Thanks guys, these are both great and give me some good insight. @Sam
I really like the linking idea, thanks again.
One other question then, does the app directory never need to be
touched? The only thing that confused me was if the configuration
objects/methods have changed, you could be breakin
I believe I'm having a similar problem as :
http://groups.google.com/group/cake-php/browse_thread/thread/6d672c98ae0557d5/c07ecd162209eab7
I'm using controller authorization, so there is a isAuthorized() in my
app_controller.php which goes off of a simple $this->Auth-
>user('role').
I'm pretty m
Obviously, your model does not exist in AppController.
Did you put var $uses = array('WhosOnline'); in there?
If you did, try putting a debug($this) in your controller and look at
the dump, maybe it's there but not called WhosOnline?
On Jun 18, 12:47 pm, Sanfly <[EMAIL PROTECTED]> wrote:
> Okay
i think i found the answer.
this bug has been fixed in cache.php version 6212.
this was the added line (253):
Router::setRequestInfo(array($this->params, array(\'base\' => $this-
>base, \'webroot\' => $this->webroot)));
at the 7031 version, this fix sacrificed on the altar of refactoring.
if i
On Wed, Jun 18, 2008 at 4:17 PM, Paul Wapple <[EMAIL PROTECTED]> wrote:
>
> Can the Controller pass a reference of itself to the Model?
>
>
No! That would be a bad programming practice.
Thumb rule - Keep your models as independent as possible
Tarique
--
> Hi, i'm relatively new to CakePHP and MVC. I've previously written my
> own frameworks and wanted to get a better understanding of MVC.
>
> So here's my question and a simple example:
>
> Can the Controller pass a reference of itself to the Model?
Usually, you don't want lower (more reusable) l
Hi Steve,
I suppose you already read this section of the 'book'. If not, it
may also be helpful:
http://book.cakephp.org/view/94/views#elements-97
On Jun 17, 2:54 pm, steve <[EMAIL PROTECTED]> wrote:
> Thanks Daniel - I did think of that, but ideally I'd like to be able
> to make a self-conta
> Is there a way I can override the table prefix for this
> model alone and leave the rest of the application using table
> prefixes?
Try defining var $tablePrefix = ''; in your model.
> Also, my old user data doesn't have encrypted passwords. Is there a
> way to tell cakePHP to not use hashing
Hi, i'm relatively new to CakePHP and MVC. I've previously written my
own frameworks and wanted to get a better understanding of MVC.
So here's my question and a simple example:
Can the Controller pass a reference of itself to the Model?
I find myself passing static variables to the model throu
Okay, so Im trying this out, but have run into a problem, im getting
the following error, and I cant figure out where I'm going wrong:
Fatal error: Call to undefined method stdClass::save() in G:\WAMP
\www\UASC Sourceforge\trunk\app\app_controller.php on line 60
I have a table whos_online
some more info:
i've got the same problem with generated links like this:
link(__('logout', true), "/users/logout"));?>
after view caching (ctrl+r in firefox) the base prefix had gone from
the url, so i've got /users/logout instead of /devel/users/logout.
without view cache the urls generated
For me in rev 7206:
1/1 test cases complete: 106 passes, 0 fails and 0 exceptions.
On Tue, Jun 17, 2008 at 11:24 PM, aranworld <[EMAIL PROTECTED]> wrote:
>
> I started to discover some rather serious errors with the way lft and
> rght values were being set while creating ACL nodes.
>
> Now, I a
any chance to see the view code for that?
On Jun 18, 1:46 am, fr3nch13 <[EMAIL PROTECTED]> wrote:
> I accomplished something similar to this using ajax calls (ajax helper
> and cakephp 1.1). This should point you in the right
> direction:http://calculator.boxcart.com/
>
--~--~-~--~~
Thanks leo, you sow me the solution.
With array('escape'=>false) it works like I want. It isn't in the api
yet.
Without ñ it works fine.
In the form->end is the same that form->submit.
With javascript and a link works too. I knew another solutions works.
I will internationalize the application
Hi everybody,
I've got an issue with the {$__cakeID__$} value in a finderQuery :
I have a Resource model and a Mark model, with these associations :
Resource hasMany Mark
Mark belongsTo Resource
Mark is a simple model with an id, a value and of course a
resource_id. What I'd like to do is, inst
A couple of things:
did you try a word without the ñ? - it displays okay for me, albeit
with a mangled ñ.
a wild untested guess, but for the second parameter try
array('escape'=>false)
I usually use $form->end() rather than $form->submit() and also I
usually create a link to the submit, via the
Another thought - changes in 1.2 RC1:
>> Please read the release notes regarding LIKE and other SQL operators.
>> That should be:
>> $conditions = array("or"=>(array(
>> 'edifici LIKE %?%' => $searchText,
>> 'adreca LIKE %?%' => $searchText
>> )));
--~--~-~--~~
Maybe this fragment will help. It allows pagination of the results
from a search query. there was something I never managed to do but I
don't recall what - maybe it was do the search and order the columns
at the same time.
if($limpio)
{
$searchText = ""; // Clear the search
Still can't get the paginator working :(
--~--~-~--~~~---~--~~
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 [E
gbk says:
what charset are you using?
iso-8859-2?
check out this: Configure::write('App.encoding', '???');
gbk
Thanks for the response gbk.
I set the charset in the default layout header by charset();?> and it appears like utf-8
I'd tried to put Configure::write('App.encoding',
That sounds about right. Try changing the name of the css file to
something like XXX.cake.generic.css.XXX
That way, you'll be able to see what it looks like without styles.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
It's Apache/2.0.52 (CentOS) Server
On Jun 18, 3:15 am, uniacid <[EMAIL PROTECTED]> wrote:
> Which webserver are you running it on?
>
> If it's on IIS you might want to try what I did
> here:http://groups.google.com/group/cake-php/browse_thread/thread/016f6649...
>
> On Jun 18, 12:34 am, Steve <[
Hi all,
I have a not internationalized (yet) application.
In cake_1.2.0.6311-beta i have:
echo $form->submit('Añadir')
and the button looks ok.
But in the cake_1.2.0.7125-rc1 the same line makes the button without
text.
Is this a bug?
I'd tried with __('Añadir',true) too, but is not the sol
Which webserver are you running it on?
If it's on IIS you might want to try what I did here:
http://groups.google.com/group/cake-php/browse_thread/thread/016f66491cdc736c
On Jun 18, 12:34 am, Steve <[EMAIL PROTECTED]> wrote:
> But of course, uncommenting that breaks my other links. Any help?
>
>
Well I believe I've figured it out,
here's what I'm using for my main .htaccess file and using
ISAPI_Rewrite 3
CODE
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.49
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^
hi,
i'm using the 1.2. rc1 version of cake.
i've got the following layout:
element('searches/searchbox')?>
element('menu/topmenu')?>
my view cache config in books controller:
var $cacheAction = array ('books/view/' => '+1 hour');
the
I'm actually using 1.2 RC 1
On Jun 18, 2:45 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Wed, Jun 18, 2008 at 12:06 PM, Steve <[EMAIL PROTECTED]> wrote:
>
> > function beforeFilter()
> > {
> > parent::beforeFilter();
> > $this->Auth->allow('success');
>
> > $this->basket = $thi
85 matches
Mail list logo