On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
John you didn't read my suggestion. It was suggested that they shouldopen a ticket to complain that CakePHP should remove it since the
generateList from enum wasn't part of the core it should be removedfrom the scafolding altogether.Sorry ab
John you didn't read my suggestion. It was suggested that they should
open a ticket to complain that CakePHP should remove it since the
generateList from enum wasn't part of the core it should be removed
from the scafolding altogether.
--~--~-~--~~~---~--~~
You r
PHPNut! You are crazy! I cannot believe you are doing an
emailer?!?!?!?! You are the most awesome coder ever. Everyone should
shower your greatness with money to push you to create greater things
for all of us ;) http://www.cakefoundation.org/pages/contribute
In the meantime maestro, I have
Not yet, I have not finished it.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access public*/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP
I would like to check out the new email component that will soon be
released with the 1.2.x.x. Does anyone have any instructions or
preferably examples on how to use this? That would be a great help for
me. Thanks in advance.
--~--~-~--~~~---~--~~
You received thi
The "Baked ENUM's" snippet has been updated.http://cakeforge.org/snippet/download.php?type=snippet&id=242Here is also a link to one of the tickets submitted to trac with phpnut's explanation.
https://trac.cakephp.org/ticket/1110
--~--~-~--~~~---~--~~
You received th
On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I would submit it to trac. Submit them to make CakePHP moregeneralized to support all databases the support for ENUM in the
scaffolding needs to be removed to make it more consitent with the restof the code that is general for all databases.
WoW! That software costs a lot of money. SourceGuardian does the same
for a fraction of that cost. I guess it is a possibility that Zend's
product is better than Source Guardian's.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
I would submit it to trac. Submit them to make CakePHP more
generalized to support all databases the support for ENUM in the
scaffolding needs to be removed to make it more consitent with the rest
of the code that is general for all databases. That way you know to
use ENUM (::hack, cough::) you
Yes. You will find that CakePHP does a lot of things automatically you
just have to know about them. Refer to the manual on models and you
will find more information and an example. It could save you some
time.
I finally used the bake.php from command line and it was GREAT!
--~--~-~-
I'm still trying to get this hierarchy to work. Once I can get this
solved I can move on to building out the rest of the site which should
be a snap but I'm stuck for now until this core part of my app has a
solid solution. Has anyone done anything similar to what I'm trying to
accomplish? If you
Hi,
Good idea. It doesn't show any warnings, though.
And it only shows one INSERT statements as being executed, yet 3
records are still created.
1 DESC `applicants` 32 32 0
2 DESC `divisions`2 2 0
3 DESC `statuses`
On 9/15/06, kacperix <[EMAIL PROTECTED]> wrote:
mod_rewrite is install on 100% and all .htaccess files are valid. But Ihave still this problem. PLEASE HELP.All caps don't really help.But if you describe your environment someone can help you sort it out.
What is your Operating System?How did you i
What is your debug level? Can you turn it to higher and see if there is any warning?I haven't discovered exact cause yet, but I had some problem with excuting same page twicewhen there is session warning about sending header.
Just in case.Sohei
--~--~-~--~~~---~--~~
mod_rewrite is install on 100% and all .htaccess files are valid. But I
have still this problem. PLEASE HELP.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to ca
On 9/15/06, Brian French <[EMAIL PROTECTED]> wrote:
A long time ago i spent hours trying to figure out why i was gettingthis only to find out the i had a space outside of the php tags (spacehere ). This is the first thing i look for now when i get a session
error like that. You may want to check to
I tried findById, with the same results.
Here's the var_dump of $this->data using either method (read or
findById):
array(7) {
["Applicant"]=>
array(32) {
["id"]=>
string(0) ""
["schoolyear_id"]=>
int(15)
["lastname"]=>
string(6) "Zoposc"
["firstname"]=>
strin
On 9/15/06, Chris Lamb <[EMAIL PROTECTED]> wrote:
On Fri, 15 Sep 2006 00:04:59 -0700, John Zimmerman wrote:> I have modified the default pages controller to add a few tweaks by> first copying it to my app directory. I then renamed it to> static_controller.php, modifying the code and the views dir
what is in the $this->data variable in the copytest function? Is it
recursive?
I cant remember off the top of my head... does read() return a recursive
array?
Would using something else like $this->Applicant->findById() possibly
fix this?
[EMAIL PROTECTED] wrote:
> Thanks for keeping at it!
>
A long time ago i spent hours trying to figure out why i was getting
this only to find out the i had a space outside of the php tags (space
here ). This is the first thing i look for now when i get a session
error like that. You may want to check to see if you have this too. :-p
Brian French
I am on a project and all this time I was developing
using php 5.1.4. I haven't used any php 4.x.x incompatible code.
The problem is that I recently learned that the hosted enviroment
provided only php 4.x.x and I tried to switch ,as I know cakephp is
compatible with both php 4 and 5.
The problem
Thanks for keeping at it!
This option:
$this->Applicant->save(array('Applicant',$this->data['Applicant']));
didn't make any changes to the database.
This option:
$this->Applicant->save($this->data);
produced the same results as before, 1 good copy of the record,
sandwiched between 2 new empty re
save takes the associated array
either
$this->Applicant->save($this->data);
or
$this->Applicant->save(array('Applicant',$this->data['Applicant'));
On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Thanks - it has been pasted.
>
> http://www.cakephp.org/pastes/show/d2e1f32e5bcb2e920a6
Hey All,
Just started a couple months ago on cake, so still pretty green.
Wanted to run this by you guys to make sure I'm not missing the boat
here.
I have view caching with the cache helper working with simple pages.
The problem starts when the tags are added into the
view.
If I wrap tags ar
Do you call the generateList function on a model:
$this->model->generateList(...)?
If so, i have been wasting a lot of time do it another way
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To
I solved the problem, I set all the date fields as readonly, and i
plugged in Tigra Calendar.
Works perfectly, as the user now inserts data in the format used by
MySQL with the Tigra tool.
Many thanks for the help.
--M
--~--~-~--~~~---~--~~
You received this mes
Thanks - it has been pasted.
http://www.cakephp.org/pastes/show/d2e1f32e5bcb2e920a6b1f377027a6a7
--~--~-~--~~~---~--~~
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@googl
Sounds like something else is going wrong. Try pasting your full
controller code along with a schema dump of the relevant tables to
http://cakephp.org/pastes/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
P
Again, thanks for the replies guys. I do appreciate the help!
Unfortunately, neither strategy worked, although they did show
interesting results. Brian's method threw me errors. But Samuel's
solution made the following happen:
Record 1 remains unchanged.
Record 2 created, with the new schoolyear
After you get the record, unset $this->Applicant->id:
function copytest($id)
{
$this->Applicant->id = $id;
$this->data = ""
unset($this->data['Applicant']['id']);
unset($this->Applicant->id = $id;);
$this->data['Applicant']['schoolyear_id'] = 16;
$this->Applicant->save($this->data[
try
function copytest($id)
{
$this->Applicant->id = $id;
$this->data = $this->Applicant->read();
$this->Applicant->id = null;
unset($this->data['Applicant']['id']);
$this->data['Applicant']['schoolyear_id'] = 16;
Oh, and I just re-read your post, and the reason you're getting errors
is because you're putting app_model.php in app/models. It should be in
app/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
Sorry, the method call above should have been fullTableName(), not
getFullTableName().
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED] wrote:
> To be honest, I don't think either are great solutions, because:
>
> - if we put the code in our data model, then only that model can access
> that function, we'd have to duplicate the code for other models that
> might want to use an enum field.
So abstract just the p
Can we get back to the original question please???
--~--~-~--~~~---~--~~
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, sen
Thanks for the reply.
I tried unsetting the 'id' value, but most strangely, the result is
that it changes the original record anyway!
I've tried it a dozen times, just to make sure, but that is indeed what
is happening.
function copytest($id)
{
$this->Applicant->id = $id;
Oh! I knew it was something simple! Thanks.
--~--~-~--~~~---~--~~
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, send email
To be honest, I don't think either are great solutions, because:
- if we put the code in our data model, then only that model can access
that function, we'd have to duplicate the code for other models that
might want to use an enum field.
- that snippet doesnt work with tables with underscores,
Chris Lamb: Nice. It worked when I modified the roues.php :) it was not
necessary to call the display function in test function. I had problems
passing variables through the url, so I discarded the idea of modifying
the original pages controller, and did it the same way as John did.
John Zimmerma
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Zend has a small business discount program that covers Zend Guard:
http://www.zend.com/store/software/zend_small_business_program
Jon Bennett wrote:
>> First post!
>
> welcome!
>
>> Okay, what about this:
>> Make a key file on the client server wit
Also, check these out: http://cakephp.org/screencasts
Some great examples of Bake usage.
--~--~-~--~~~---~--~~
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.
> First post!
welcome!
> Okay, what about this:
> Make a key file on the client server with an expiration date encoded in the
> key.
> Have your program check the key's expiration date every time it runs
> When the key expires, call a page on your site to get a new key with a new
> expiration da
On Sep 15, 2006, at 8:37 AM, TWIOF wrote:
>
> If you go to:
>
> your_server\htdocs\cake_root_dir\cake\scripts\
>
> using command prompt (win) or the shell on linux (i think) and run
> cake.php you can get it to build the same output as the scaffold, it
> inserts the controller and view in the ap
If you go to:
your_server\htdocs\cake_root_dir\cake\scripts\
using command prompt (win) or the shell on linux (i think) and run
cake.php you can get it to build the same output as the scaffold, it
inserts the controller and view in the appropriate directories.
Hope that's what you meant.
TWIOF
Was just wondering if I could, so I wouldn't have to setup models for
them. No problem!
--~--~-~--~~~---~--~~
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.co
Why would you want to do that? If you went ahead and gave them models
and controllers then you could use generateList from CakePHP to quickly
make your selectTags for counties and countries.
--~--~-~--~~~---~--~~
You received this message because you are subscrib
To make sure it degrades build your entire application in HTML first.
Make sure that works. Then, worry about adding in AJAX. So, then you
make sure that you add in AJAX to fit the model of HTML working. So,
things like it will send the requests directly and return the method
whereas in HTML it
I like it.
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more op
Hi, I've rendered some pages with the $scaffold commands but I would
like to view what Cake has output has code...how can I?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, s
Hi all,
I have 2 tables in my database which hold lists of counties and
countries. How can I use these in my controllers without creating
models for them??
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cak
Thanks nate.
I did similar thing with Sd_Auth but HTTP authentication sounds
better.. i'll try this one.
I think this is as simple as protecting /admin folder through host's
ControlPanel or .htaccess file. So this topic might help people who
want simple(no database) single user(admin) protection
Only you have the power for that zipman, there doesn´t appear to be
anything inherantly wrong with your code
Disable js - do you still see 2 updates?
if so put something like log (debug_backtrace()); in your method and
see where you are calling it twice.
HTH,
AD7six
--~--~-~--~~-
Afternoon.
On Fri, 15 Sep 2006 00:04:59 -0700, John Zimmerman wrote:
> I have modified the default pages controller to add a few tweaks by
> first copying it to my app directory. I then renamed it to
> static_controller.php, modifying the code and the views directory
> appropriately.
Did you
Do you see any problem?
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED
thtml == html if you don't put any tags
JitZhang ha escrito:
> but some page is html ,no all is thtml!
>
> http://etrade.webcrew.cn
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to thi
Hi Dear
Members,
FOLLOWING R THE NEW
JOBS POSTED THIS WEEK (WEEKLY NEWSLETTER) :
Job Title
Job Posted By
HR
Manager
Global Talent Search & Consult
sap-bw
consultant
iGen consulting
Sales
and Marketing
> > /browse/computers/web/programming/php
you could also try using something other than / between each item,
which you could explode in the controller method, eg:
/browse/computers-web-programming-php
that way you don't need to mess about with routes...
jb
--
jon bennett
t: +44 (0) 1225 34
generateList really won't do what you want.
A good place to start is here:
http://wiki.cakephp.org/docs:understanding_associations
You can learn about how to specify conditions to filter associated
models. You can also go here: http://manual.cakephp.org/chapter/models
and read about $recursive
AD7six:
I think it would be really careless on the programmer's part to give an
association the same name as a field in a particular model. I can't
figure why on earth would you want to have a Comments association and a
comments field at the same time...
And I don't understand the problem with m
Following problem:
I want to create an filter for ouputting me choosen data..
For example: I have an customer, every customer has many contact
persons and every contact person has many special functions..
Ok, lets look at the tables, which are: customer, contacts and
functions.
The relations are c
Thanks for the feedback, I will look into it.
Just one question - all these javascript actions are very nice, but how
does one make it degrade gracefully if Javascript is switched off? I
mean, if I make the whole 'create a new row' in my table dependent on
Javascript what is going to happen with
Did you have a look at elements? (http://manual.cakephp.org/chapter/views)
2006/9/15, nate <[EMAIL PROTECTED]>:
>
> // Controller:
>
> function view ( ) {
> $this->render("view_std");
> }
>
>
> >
>
--
e> [EMAIL PROTECTED]
w> http://andreas-waidelich.de
m> +49.177.423 09 48
--~--~
// Controller:
function view ( ) {
$this->render("view_std");
}
--~--~-~--~~~---~--~~
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 fr
Gurus,
I have what would seem to be very simple question. How do I change the
template that gets used for an action? Instead of the view.thtml
template for the view action, I want to use view_std.thtml,
view_long.thtml, or view_short.thtml depending on some logic. How do I
do this in cakePHP?
T
On 9/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
.clippedWhat I want to do is simple - take the original Applicant record
(schoolyear = 16) and copy them to a new record, with all the samedata, except that the schoolyear = 15.$this->Applicant->id = $id;
On 9/14/06, Hanzgroove <[EMAIL PROTECTED]> wrote:
One more thing you might know off the top pf your head. Does cakeprovide a mechanism for examining the url?For example:/browse/computers/web/programming/phpInside of your controller you can do a pr($this->params); to see the contents of the params
I think you might be happier if you split the functionality into two different controllers.I have modified the default pages controller to add a few tweaks by first copying it to my app directory. I then renamed it to static_controller.php, modifying the code and the views directory appropriately.
67 matches
Mail list logo