this->Category-
>CandidateItem->getLastInsertID();
But where does that $category come from? Is it the $this->data
['Category']? In which case should it be $category["Candidate"]
["CandidateItem"]?
Seb
On Jul 14, 10:02 pm, cc_humbry wrote:
> Finally sorted
Mathew Nik Foscarini wrote:
> I hope this isn't a stupid question, but how can I check what version of
> Cake 1.2. is installed?
There's a version.txt file located in cake core files folder.
> I also need to update my Cake 1.2 install with the latest version. When
> copying files over top
seb wrote:
>> http://localhost/ points to /var/www/html/blog
>
>> http://localhost/posts/
>
> And what about localhost/blog/posts ?
Ouch. Made a mistake. Forget it.
Do you have a posts_controller.php file in your controllers folder ?
--~--~-~--~~
> I feel that if someone comes to the group with a question, EVEN IF
> IT'S BEEN ASKED BEFORE, it deserves an answer, or at least a _polite_
> point in the direction of the answer
Well, IMHO, if the guys are not up to browse the list thru Google Groups
to find the answer, I think they should sto
> http://localhost/ points to /var/www/html/blog
> http://localhost/posts/
And what about localhost/blog/posts ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email t
> Fatal error: Call to undefined function oci_connect() in XAMPPLite
> \htdocs\cake\cake\libs\model\datasources\dbo\dbo_oracle.php on line
> 144
>
> What am I doing wrong here ?
This means that you don't have the Oracle client libraries installed.
http://www.oracle.com/technology/tech/oci/insta
Sliv (Tim MacAleese) wrote:
> Have you run this through a feed validator like http://validator.w3.org/feed/
>
> It might flag something...
Yes !
Thanxx for giving me the tip :)
I am displaying my news in their complete form on my index page, I do
not need any 'view' action for each news. So a
Sliv (Tim MacAleese) wrote:
> I think your subject is the answer? :P
Damn ! :D
Well, I do not use TB a lot, at all I must admit, for RSS feeds and I
just wanted to check is everything was okay. Obvisouly, there's a
gremlins hidden somewhere.
Opera also fails the same way than Thunderbird
A ne
Hi all bakers outta here !
I've built a RSS feed with the RequestHandler trick. Works like a charm
in Firefox !
Using the same feed address with Thunderbird "fails" as it just displays
the very last article I inserted in my database and not the 10 latest
ones like in Firefox.
What's wrong ?
Conceptually, this can be done this way :
For the options your users should enter, enclose a textarea field inside
a DIV that is by default on visibility:hidden CSS style.
On the dropdown, trigger the onChange Javascript event to check out if
the 'dropdown' option is selected. If yes, change d
> Thanks - for what it's worth, I have given your post a 5* rating on
> Google. Definitely switching from raw PHP to Cake!
Thanxx for it.
The best way to start is to study the official "Cookbook" doc found here :
http://manual.cakephp.org/
The simple blog tutorial just rocks
--~--~-~
> And looking at the bug list in trac, I wouldn't say there are any
> major changes in the pipeline either. Going from 1.1 to 1.2 isn't
> totally trivial, so the sooner you get started on such a transition
> the better. If you are waiting for a "final" release before making
> that change, I woul
rtanz wrote:
> cheers that worked perfectly, another thing while we're at it, i am
> noticing that the code works the same whether you use single or double
> quotes, is one or the other better? Sorry might be a php thing and
> nothing related to cake, im not an expert in php itself either. thanks
Well, this might have been asked a few times before but does anybody
have any idea when 1.2 will be available as stable release ?
Yes I know "When it's done"
:D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
Mark Lawton wrote:
> Hi Everyone,
>
> I would like to switch to using Cake, but looking at
> http://manual.cakephp.org/view/66/models , I don't see an obvious way
> to ask for a calculated ordered list from a database - and these are
> indispensable to our website. Suppose, for example, one wante
rtanz wrote:
> tried that and got this error
>
> Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/jpgalea/
> public_html/survey/app/views/surveys/edit.ctp on line 9
Sorry for that, I should have done a cut & paste from my own code. Made
a typo by forgetting to enclose all things re
rtanz wrote:
> hi i would like to make a select box with a label and dropdown,
> default value 'Yes' and no empty value. I am trying this code but its
> not working as i want to, can you help me out?
With Cake 1.2, you should try this :
echo
$form->input("type"=>"select","options"=>array("0"=>"
> Sorry, I just meant the error message I added in my controller (the
> flash message in the else clause) i.e. cakephp doesn't think there's
> anything in $this->data.
In your controller, did you try this :
$this->Model->create();
$this->Model->save($this->data);
instead of :
$this->Model->cre
> my only idea would be creating an rss controller and then redirect to
> main/index.rss
> obviously that is not really pretty
Well, that's an idea but it still sounds as a workaround.
For the moment, I've created an empty rss folder at the server root and
a .htaccess with a "redirect permanent
MarcS wrote:
> try
>
> Router::connect('/rss',array('controller'=>'main','action'=>'index',
> 'ext' => 'rss));
>
> I guess this ought to work
This does not work. Gives me 404 :(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
>When I submit the form, the
> controller branches to display the error message in my view, along
> with the following:
>
> 1 query took 2 ms
> NrQuery Error AffectedNum. rows Took (ms)
> 1 DESCRIBE `contacts` 6 6 2
Well, *which* error message ?
> In my "bill add view" i've currently this entry:
>
> echo $form->input('member_id');
>
> The result is a dropdownlist with all the ID's available in the
> Members table. But here i don't want to see the ID, i want to see the
> "lastname" from the "lastname" column.
In your controller, setup t
Hi all bakers
I succeded in generating RSS feeds following the marvelous tutorial from
Jiri Johannes Kupiainen found on webarchives.
I'm still stuck with one thing, though. I want to route
mydomain.com/app/rss to mydomain/app/index.php/main/index.rss
I'm trying this :
Router::connect('/rss',
OK, now I'm confused.
I've just got the latest nightly, put app_controller.php in /app/
app_controller.php and it seems to be working - looks like there's
something broke in the new year's build?!
Thanks for the help anyway - i'll "pseudo" protect my functions
ll times) so
would like a way to make the Controllers inherit function properly
from their parent objects...
Please help!
Thanks
Seb
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to thi
/app/controllers/app_controller.php and that didn't work
either...)
Thanks!
Seb
On Jan 30, 10:07 am, Seb <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I'm just thinking about moving an App i'm working on to CakePHP 1.2 so
> that I can enjoy some of the new features..
Hi all bakers
The problem is : I have 2 columns site layout where a mailing list
subscription block can be seen on all the pages. So I put it into en
element.
Basically, this is just a form with text input and subscribe button, so
I have built a mailinglist model and a mailinglist controller
francky06l wrote:
> You can use the "fields" option in the relation declaration (you can
> also use bindModel prior to your findAll), or use the Bindable
> behavior from Mariano in the Bakery.
> hth
Thanks Franck, I will investigate this way !
--~--~-~--~~~---~--~---
> Try checking out this link, it might explain it better:
>
> http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/
Thanks for this link ! It's much more clearer for me now.
--~--~-~--~~~---~--~~
You received this message because yo
Just to clarify, what i'd done (with both just pointing to Article)
didn't work and borked out with an error "non-unique key Article" or
something similar...
Seb
On Jan 7, 1:28 pm, Seb <[EMAIL PROTECTED]> wrote:
> This is interesting - I'd previously tr
e names to ids
etc - you've created differently named elements, then mapped them
specifically to Article - i've just tried this and it seems to work!
Thanks for the help - if you can offer any more explanation of why/how
this works, that would be great :D
Thanks
Seb
On Jan 7, 1:22 pm
with the scaffolding part I'm working on at
the moment as it keeps trying to look for a articles_articles table
(which i don't think (correct me if i'm wrong) i want nor need)
Any help would be greatly appreciated!
Thanks
Seb Maynard
--~--~-~--~~~---
Mmmm.. quick enough!
fixed in r5672 by phpnut!
Thanks heaps!
Seb.
On Sep 20, 11:28 am, Seb <[EMAIL PROTECTED]> wrote:
> Right on! Cake is getting sweeter every day! :)
>
> Would it help for me to raise a TRAC ticket or is it all under
> control?
>
> Thanks Chris!
>
Right on! Cake is getting sweeter every day! :)
Would it help for me to raise a TRAC ticket or is it all under
control?
Thanks Chris!
Seb.
On Sep 19, 10:45 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/19/07,Seb<[EMAIL PROTECTED]> wrote:
>
>
>
>
nd run /admin/companies
So is there any reason why this (admin_index in appcontroller)
wouldn't be right according to cake?!
Thanks Chris,
Seb.
On Sep 18, 11:45 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/18/07, Seb <[EMAIL PROTECTED]> wrote:
>
>
>
>
Hi Adam,
Good point you're raising! Though we've been updating from that branch
for as long as the project has been going (~6months now) and it't
proved pretty good! Now that's broken more than unstable. But yeah..
awesome point.. I'll give that a try in the morning!!
C
of *ALL* methods in
the appcontroller, which includes admin_index.
The results is that protected_action error... saying I can't access
admin_index directly...
Cheers for the inputs!
Seb.
On Sep 18, 5:18 pm, Seb <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'd be interest
in_index at line 163 which is quite right, but then the check on
line 173 fails because $protected contains a list of *ALL* methods in
the controller.\
Anyways... we're puzzled around here...
Any body could shed some light on this?
Cheers,
Seb.
--~--~-~--~~~---~
All right... fixed!
The configuration was changed from defining CAKE_ADMIN to calling
Configure::write('Routing.admin', 'admin'); and our coufig was not
updated for some reason.
Works like a charm now! Hope this helps anyone!
Thanks ladies! ;)
Seb.
On Sep 10, 12:04 pm, S
gt; null, 'controller' => null, 'action'
=> null), $default);
I have a sneaky feeling the curly bracket might not be quite where we
want it...! ;)
Anyway... any input?
Cheers,
Seb.
--~--~-~--~~~---~--~~
You received this message becaus
comment",
"update"=>"project_comment_list", "complete"=>"// clear your text box
content here..."))
Hope this helps anyone else...
Seb.
On Apr 7, 5:45 am, "Andres Monroy-Hernandez" <[EMAIL PROTECTED]>
wrote:
> I have a fo
er->findbyId('3'),'User.name');
and.. for efficiency's sake, you could do something like this instead;
extracts only the username... instead of the whole user obj...
$foo = $this->get($this->User-
>findbyId('3',array('name')),'U
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_ali
server!
Just so that everyone know!
Seb.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, se
any
decision which would involve long term risk, or require a vision!
Successful businesses are a lot about taking risk? no! Businesses are
a lot about taking intelligent/knowledgeable risks!
Same here... build it?! build what? we don't even know what we're
building!
anyway... not flam
in views are
pretty much all the same!)
It might even be worth having a big notice on cake's homepage saying
"Cake will not build a website FOR you, it will help YOU DO IT!".
Anyways... sorry about the long post!... and.. that's my 2c btw...
don't bother flaming!
Seb.
**
Oh.. and.. last point, last post... Tane, I second retty much
everything you said so far. You and I have the same vision of IT,
system design and collaborative work apparently!
;)
SEb.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
more, it'd be pretty straight forward to add it, or have
someone to. The point is they got started with Cake and will keep
using it.
Anyway, I realize the project I posted above might be too big ...
anyways.. my 2c!
Seb.
On Mar 29, 5:02 am, John David Anderson <[EMAIL PROTECTED]>
wrote
build the site, work quoted to between 225 000 and 350 000$ by
outsourcing companies, and so this will go forward.
Any feed back welcome!
Seb.
On Mar 29, 5:00 am, "digital spaghetti"
<[EMAIL PROTECTED]> wrote:
> Another point I forgot to make is I see a lot of people re-inventing
ng it took for the response to come
back.
I've been using that Profiler for a while.. and I'd doubt you'd need a
custom profiler! ;)
Hope this help!
Seb.
On Mar 28, 2:01 pm, "skyblueink" <[EMAIL PROTECTED]> wrote:
> Next snippet is supposed to show 10 s, each disp
Additionally, could any one else using the latest SVN try that out...
to see if i'm just freaking out...?!
Thx!
On Mar 21, 2:58 pm, "Seb" <[EMAIL PROTECTED]> wrote:
> I've been pulling my hair out for a few days trying to find out
> whether I was doing so
LOWER function gets stripped
off? obviously, that's not valid SQL.
My question is... is that something I'm doing wrong from 4605 or is
this a bug.. (the same code use to work like a beauty in previous
releases.
Can anyone comment that?
I've raised a ticket last week.. with no feed
The only thing I can say... if anyone else runs into that, is have a
look at the assumptions Bake makes in regards to associations... a guy
on IRC had the same issue, and forced a $belongsTo instead of $hasOne
(as was his data model) and it worked...
hth,
Seb.
On Jan 16, 3:46 am, "lucasp
as most other HtmlHelper method, the values (selected items) are
pulled out of the current data. The function then generates;
label
label
The to make a nice look and feel, I use the css to give the checklist
div a fixed height and make the overflow scroll (auto). Looks like
this;
http://img341.i
for the record... in bootstrap.php, you can use
$modelPaths
$viewPaths
$controllerPaths
$helperPaths
$componentPaths
$behaviorPaths
To add one or more paths to be looked up.
I've submitted a patch (dams simple) to add additional paths for
vendors (so that a vendor be reused across multiple proj
ser');
So anyway, again, I'm really not sure where you're heading... but post
some more code (models, views and tbl structure) and we'll see what we
can do!
Hope it helps!
Seb./
Kathrin wrote:
> Hello,
> ich have Problems to save data in a hasMany/belonsto
> Users_Profi
good look at the new paginator from
1.2, so I can't say if it provides what you are looking for.
Anyone?
I don't mind sending you my code if you want to look into it, however
there is very little new stuff.. mostly duplicating+adating the
current SortBy stuff.
Hope this helps!
Seb.
jy
Hey,
You might want to give this article from the bakery a look;
http://bakery.cakephp.org/articles/view/55
I've been using it and extending it for months now and it works like a
charm!
Hope this helps!
Seb.
Grant Cox wrote:
> I haven't really looked at the new Validation opt
the user
is in a specific group, I render on configuration, disallowing for
instance file deletion.
Hope this helps!
Seb.
On Feb 16, 2:57 pm, "Fedya" <[EMAIL PROTECTED]> wrote:
> i'm new to cakephp and have yet to try to create anything with it. i
> need to create a file
veloped apps on
Win and made them live on a nux box...! never userd the table prefix
though...
Cheers,
Seb.
On Feb 12, 3:50 pm, "DominiqueM" <[EMAIL PROTECTED]>
wrote:
> Hi Seb,
>
> Just tried accessing the Linux maching with Putty, MySql worked fine.
> The DB on the
> 'Blog') );
can become
var $belongsTo = array('Blog');
Hope that helps!
Cheers,
Seb.
On Feb 13, 11:27 pm, "alexxwiz" <[EMAIL PROTECTED]> wrote:
> I have same problem.
> Two tables:
>
> CREATE TABLE `maincats` (
> `id` int(10) unsigned NOT N
@alexxwiz.. and make sure you read Eric's post about $recursive!
;)
S.
On Feb 13, 11:27 pm, "alexxwiz" <[EMAIL PROTECTED]> wrote:
> I have same problem.
> Two tables:
>
> CREATE TABLE `maincats` (
> `id` int(10) unsigned NOT NULL auto_increment,
> `title` varchar(255) default NULL,
> `vis
f the SUSE box,
using the same credentials as the cake app, and see if you can run the
sql manually.
Again.. that's very likely to be a mySQL server prob.
Hope that helps!
Seb.
On Feb 12, 1:58 pm, "DominiqueM" <[EMAIL PROTECTED]>
wrote:
> Hija,
>
> Problem:
> Deployment of
ting a new virtual field a pain.
I'll keep looking into it!
Cheers,
Seb.
On Jan 22, 4:51 pm, "nate" <[EMAIL PROTECTED]> wrote:
> Sorry, didn't see you the first time. Okay, as I see it, there are 4
> ways to solve your problem, 3 of which are basically varia
As per the php doc...
As of PHP 5, this function returns the name of the methods as they were
declared (case-sensitive). In PHP 4 they were lowercased.
Seb.
On Jan 22, 9:55 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Crap, I'm stupid. The example method s
mmm... are ^^BUMPS^^ ok in google groups...?!
;)
Seb.
On Jan 8, 10:06 am, "Seb" <[EMAIL PROTECTED]> wrote:
> Hey Nate,
>
> Thanks for your time! What I'm trying to do evolves around virtual
> fields. For instance in the user model, the afterFind() method crea
terFind($results);
}
function beforeSave() {
// say I was to do something here... db related or not... and
something fails... which is possible according to the manual
return false;
}
end code
So.. yeah... I don't think I'm doing anything wrong... and am just
wondering
alled (because the
data is not pulled off, resonably!).. but then any virtual fields are
GONE!
Any thoughts welcome!
Cheers,
SEb.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
sense!
;)
Cheers,
Seb.
On Jan 3, 12:50 pm, "Seb" <[EMAIL PROTECTED]> wrote:
Guys...
anybody has any idea why was the function strip_plugin() removed from
basics.php in 1.2.x... or where it's gone...?
I can easily work around it, but I'm just intrig
Guys...
anybody has any idea why was the function strip_plugin() removed from
basics.php in 1.2.x... or where it's gone...?
I can easily work around it, but I'm just intrigued as to why is it
gone...?!
cheers,
Seb.
--~--~-~--~~~---~--~~
You rec
ific header name with it's option(s)!
so.. the above code will generate a 4 column table headers,
column 1 is labeled Order, is sortable (because of the
$pagination->sortBy()), and has a fixed width of 60px;
column 2 is labeled Name, and is sortable - no other options (the
defautl css still
$this->setPaging($this->view->_viewVars['paging']);
}
$this->initialized = true;
}
}
then in every other function of the helper, I added $this->init();
Hope this helps anyone else! Anyhow... if somebody could confirm how
righ
ght drill down the pagination component and helper tomorrow morning
to see if I could make that a bit more seemless... surely there is a
way...
still.. any thoughts welcome!
Seb.
On Dec 13, 4:22 pm, "Seb" <[EMAIL PROTECTED]> wrote:
> Hi everyone...
>
> I've been pulling
;Create');?>
I call the element like this;
echo $this->renderElement('index' /*no parameters*/ ) );
Both of the helpers are defined in the app_controler.php
again.. am I going crazy?!!
Cheers for any input!
SEb.
--~--~-~--~~~---~--~~
You recei
Hi guys,
Thx for your time! saveField works like a charm indeed! I'll still
disable validations and see... just out of curiosity!!
Again, Cheers to both of you for your time!
Seb.
--~--~-~--~~~---~--~~
You received this message because you are subscrib
uld get the db server time? thus unserting
now() in mysql instead of the webserver time...?
Any thoughts welcome!
Cheers,
Seb.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this gr
Dude!!
loadHelper('html'); is what I was missing! cheers for that!
Braces... I'll take a good note of it! ;)
Cheers!
Seb.
On Dec 5, 9:04 am, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> Extend the helper this way:
>
> 1. Create a file called myhtml
Thanks a lot for your idea guys,
I will follow your advices and try to make it works
--~--~-~--~~~---~--~~
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@googlegroups.com
T
Hello,
I got one issue with cake and would need your help.
I have a model called Spot with different attribut.
For example, one of its variable is type. In my database type is an
integer, but when I display the data on the web page, I want to map
each value with a specific text :
db value / value
Cool, thanks. It was just the Zip file that I put into the html folder.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe
/log
/phptmp
/restore
I cannot create a folder in this level. Where do I have to put which
above mentioned file?
Sorry for asking those basic questions. I searched already a lot but
had not found answers, tutorials or anything concerning them.
Cheers,
S
phpMyVisites is great too (http://www.phpmyvisites.net)
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group
82 matches
Mail list logo