Re: using CakePHP in unusual way

2006-06-02 Thread Larry E. Masters aka PhpNut
I think you need to get new designers. If this is a project you are in charge of, your make decisions not them.http://www.help2go.com/Tutorials/Web_Page_Design/CakePHP_and_Dreamweaver_8.html
-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/ 

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Checkboxes doesn't appear checked

2006-06-02 Thread Sven Homrighausen

Hi there!

I'm using cakephp version 1.1.3.2967. While managing my data with
scaffolding I've some problems with checkboxes. Let's say there's a
TINYINT(1) visible in my table pages. The related checkbox is going
to be generated as it should in my views, but it is always unchecked,
although the correct data is being inserted into my database when I
check it once and the object output also shows the correct value like
this:
[Page] = Array
(
[id] = 1
[title] = Home
[nav_title] = home
[visible] = 1
...
  )

As you see visible is set, but the checkbox doesn't appear checked.

I found a ticket relating to that issue but it seems like it was for
version 2???

Any suggestions to my problem?
Thanks, Sven


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



RE: Having trouble with session checking.

2006-06-02 Thread Ryan Ginstrom

 [mailto:[EMAIL PROTECTED] On Behalf Of radioflyer
 In the models that I completely shutdown with:
 var $beforeFilter = array('checkSession');
 everything is hunky-dory.

How about:

function beforeFilter( )
{
if ( in_array($this-action, array( 'edit', 'add', 'delete' )))
{
$this-checkSession() ;
}
return true ;
} 


Regards,

--
Ryan Ginstrom


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



A simple hasAndBelongsToMany example

2006-06-02 Thread olzoi

I'd like to add a row to joinTable named categories_companies between
models Category and Company. However, when I choose the category to
be added for the company in a select...

 $html-selectTag('Category/Category', $categories_array)

...and try to save the Company in the controller...

 $this-Company-save($this-params['data'])

...will cause all the rows from categories_companies to be deleted
and then the selected category will be inserted. The question goes: how
can I pass the already existing data from categories_companies to
this 'Category/Category' array which is used in the save-function to
delete and insert the associated data?

In case of checkboxes this is easy by just deleting everything and
adding all checked boxes. Here I just select the value I want to add
and everything but that gets deleted. I'd really appreciate some help
here.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: A simple hasAndBelongsToMany example

2006-06-02 Thread olzoi

My problem also associates to a similiar one concerning deleting
certain association:
http://groups.google.com/group/cake-php/browse_thread/thread/2a95bba41a1ae308/719c79a1af46a9cf?q=deleting+associatedrnum=1#719c79a1af46a9cf


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



pagination question involving $this-modelClass

2006-06-02 Thread Bevan Christians

I am very new to cakephp.
i've been using cake for two hours now so far and i ran into a slight problem
this has probably been mentioned before i noticed a previous post regarding
$this-modelClass.

i read the tutorial on pagination: http://wiki.cakephp.org/tutorials:pagination

my situation: table called subscribers, controller =SubscribersController
my problem:
#$this-order = $this-modelClass.'.'.$this-sortBy.'
'.strtoupper($this-direction);
modelClass returns subscriber, which would be correct because
get_class would return subscriber and it breaks my query because order
becomes subscriber.created DESC
instead of subscribers.created DESC

my soln was to hardcode
$this-order = 'subscribers.'.$this-sortBy.' '.strtoupper($this-direction);

but i am assuming i missed something because hardcoding isnt a
solution in the programming world.

Just curious about what i did wrong?

even just a link to url or someone telling me where to go search would help.

Thanks in advance guys

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Cake Software Foundation Certification

2006-06-02 Thread gwoo

Basically, You can use the cakephp badge on a site that you create,  
and we very much appreciate when you do.
But you cannot use the CakePHP logo or name to promote your web  
development company or your services, unless you are a certified  
CakePHP Engineer.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Cake Software Foundation Certification

2006-06-02 Thread Jon Bennett

 Basically, You can use the cakephp badge on a site that you create,
 and we very much appreciate when you do.
 But you cannot use the CakePHP logo or name to promote your web
 development company or your services, unless you are a certified
 CakePHP Engineer.

does that mean I can NOT mention that I use the cakePHP framework to
build web apps (in the same way I'd put php4/5, Actionscript 1/2,
html, css etc) publicly on my web site?

thanks,

jb

-- 


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Cake Software Foundation Certification

2006-06-02 Thread Felix Geisendörfer




I would not see how this would help the CakePHP community, nor the
CakePHP foundation if you
are going to forbid people to promote their services by mentioning the
framework. As of right now, I don't
think that CakePHP is popular enough to be known by business people
other then geeks. It didn't
generate as much hype as Ruby on Rails did, nor has it been around long
enough like typo3 and such.
The entire thing just seems like a very aggressive move for
a foundation of a project that's licensed 
under MIT to me.

If that's the rule - I'll go with it. But being a citizen of Germany
I'm pretty sure US law does not apply to me,
as well as to lots of others in the community which is pretty
international I think.

So, I think we would all appreciate to get a complete clarification on
this topic, as well as a little insight into
the direction the foundation is headed [...].

Best Regards,
Felix Geisendörfer aka the_undefined


Jon Bennett schrieb:

  
Basically, You can use the cakephp badge on a site that you create,
and we very much appreciate when you do.
But you cannot use the CakePHP logo or name to promote your web
development company or your services, unless you are a certified
CakePHP Engineer.

  
  
does that mean I can NOT mention that I use the cakePHP framework to
build web apps (in the same way I'd put php4/5, Actionscript 1/2,
html, css etc) publicly on my web site?

thanks,

jb

  



--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---





Re: pagination question involving $this-modelClass

2006-06-02 Thread [EMAIL PROTECTED]

hi

it should be

$this-order = $this-modelClass.'.'.$this-sortBy.'
'.strtoupper($this-direction);

and output : Subscriber.myField myDirection

then the $this-order is used in the ORDER BY clause

ORDER BY Subscriber.myField myDirection

hope this helps

thomas


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Cake Software Foundation Certification

2006-06-02 Thread gwoo

This policy helps the community in several ways.
By controlling the rights to the trademark we can guarantee the  
source and skills associated with the CakePHP logo and name. If we  
had an open trademark policy it would dilute the brand and take away  
from the quality that is CakePHP. The community benefits from this  
policy as there is no confusion as to who is and who is not dedicated  
to the project.

Certification for developers and allowing them to use the CakePHP  
logo and name promotes active community participation and affiliation  
with the brand. Moving forward this will be important to the  
continued development of CakePHP. We prefer to work with developers  
who care about the code and want to see it move forward. By becoming  
a Cake Certified Engineer you are committing yourself to the success  
of the project as a whole.

All we are really saying here is that we are granting permission  
outright to use the badge. But if you want to promote your products  
and services with the CakePHP logo and name then you need to ask  
permission. Certification is one way to do that. Otherwise contact,  
[EMAIL PROTECTED]

Trademark rules are international and based on treaties the US has  
with the EU and other nations. It is one of the few truly  
international policies. http://www.wipo.int/treaties/en/

The Foundations goal has and will remain, the promotion of  
development related to CakePHP.



--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Problems with the latest nightly MySql

2006-06-02 Thread Felix Geisendörfer




Hi,

I just updated my cakephp core on some of my apps to the latest nightly
(1.1.4.2992), now they are all spitting out mysql warnings.
I use PHP 4.4.0 on Apache 2 with MySql 4.1.14 right now. Any idea what
that could be? Here are some errors that I got

Warning: mysql_real_escape_string(): 43 is not a valid
MySQL-Link resource in C:\Localhost\www\lugsteinhof.de\cake\libs\model\dbo\dbo_mysql.php
on line 244

Warning: mysql_query(): 43 is not a valid MySQL-Link resource in
C:\Localhost\www\lugsteinhof.de\cake\libs\model\dbo\dbo_mysql.php
on line 126

Warning: mysql_errno(): 43 is not a valid MySQL-Link resource in
C:\Localhost\www\lugsteinhof.de\cake\libs\model\dbo\dbo_mysql.php
on line 301

Warning: mysql_real_escape_string(): 43 is not a valid
MySQL-Link resource in C:\Localhost\www\lugsteinhof.de\cake\libs\model\dbo\dbo_mysql.php
on line 244

Warning: mysql_real_escape_string(): 43 is not a valid
MySQL-Link resource in C:\Localhost\www\lugsteinhof.de\cake\libs\model\dbo\dbo_mysql.php
on line 244

Warning: mysql_real_escape_string(): 43 is not a valid
MySQL-Link resource in C:\Localhost\www\lugsteinhof.de\cake\libs\model\dbo\dbo_mysql.php
on line 244

Warning: mysql_query(): 43 is not a valid MySQL-Link resource in
C:\Localhost\www\lugsteinhof.de\cake\libs\model\dbo\dbo_mysql.php
on line 126

Warning: mysql_errno(): 43 is not a valid MySQL-Link resource in
C:\Localhost\www\lugsteinhof.de\cake\libs\model\dbo\dbo_mysql.php
on line 301

Thanks in Advance,
Felix aka the_undefined

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---





Re: Problems with the latest nightly MySql

2006-06-02 Thread gwoo

Looks like you db connection might be missing.

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: select tag annoyance

2006-06-02 Thread ryanb006

Quick hack:

On line 1126 of /cake/libs/view/helpers/html.php change

$select[] = sprintf($this-tags['selectoption'], $name,
$this-parseHtmlOptions($optionsHere), $title);

to

$select[] = sprintf($this-tags['selectoption'], $title,
$this-parseHtmlOptions($optionsHere), $title);

Ryan


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: select tag annoyance

2006-06-02 Thread gwoo
array('NSW='NSW','QLD'='QLD' etc everytime? yes
--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---



Re: Having trouble with session checking.

2006-06-02 Thread radioflyer

Thanks Ryan.

Of course that's a better  way because I don't have to sprinkle
$this-checkSession all over my controllers.

Still kind of wondering why the other way didn't work...

Thanks again.
Dan J.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: select tag annoyance

2006-06-02 Thread John Zimmerman [gmail]
Your shortcut would actually be to create a function which you can pass the array and have it return another array in the appropriate format.i.e. you pass this array to a function...
$testarray[0] = 'OR';$testarray[1] = 'WA';and your function would return the following...
$testarray['OR'] = 'OR';$testarray['WA'] = 'WA';

On 6/2/06, gwoo [EMAIL PROTECTED] wrote:

array('NSW='NSW','QLD'='QLD' etc everytime? yes





--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Cake Software Foundation Certification

2006-06-02 Thread nate

 I strongly suggest that you check your local trademark law for details
 of what you can and cannot do without a licence. Don't blindly believe
 trademark owners: of course, most will try to convince you that you
 cannot use their appropriated words at all without permission.

Have we gone after anyone for simply mentioning CakePHP on their site??
No.

Rather than taking a letter-of-the-law approach (which seems a bit
confrontational), why not recognize it as an opportunity to (a) support
the comminuty and (b) score some bragging rights ;-)


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Problems with the latest nightly MySql

2006-06-02 Thread nate

Are you getting any warnings from mysql_connect?


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Problems with the latest nightly MySql

2006-06-02 Thread Antonio Cortés

I got the same problem. It seems to be a problem with sessions,
changing session management from database to php it works.



2006/6/2, nate [EMAIL PROTECTED]:

 Are you getting any warnings from mysql_connect?


 



-- 

Antonio Cortés (Dr Zippie)

El ordenador es la evolucion logica del hombre: Inteligencia sin
moral: John Osborne.
A nullo videbatur, ipse autem omnia videbat

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Checkboxes doesn't appear checked

2006-06-02 Thread [EMAIL PROTECTED]

hi

if you are using controller code generated by bake try changing

$data in edit and add function to $this-data

and set a value of 1 in your $html-checkbox options array

hope this helps


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Any idea how read views from database?

2006-06-02 Thread Petr Vytlačil

Hi CakePeople,
I want to programme easy guest book system with support use self
templet for define how gbook look. It crossed my mind that i could have
save some views (thtml file) to database and read them from db. How I
can use for show data views which are save in directory views, but how
i can make force controller to use views from DB?

I know that i can use SMARTY templet in CakePHP and that I cane read
from DB, but it is last solvent.

I thank you for your advice
P.V


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



using Xsl and XML with cakephp

2006-06-02 Thread [EMAIL PROTECTED]

I am looking to generate xml content from my database and php functions
and then format it using xsl. Can anyone help me with this??


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: pagination question involving $this-modelClass

2006-06-02 Thread Bevan Christians

Yea thats what it was
but it didnt return any results
until i hardcoded subscribers instead of $this-modelClass
thats what i didnt understand

On 02/06/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 hi

 it should be

 $this-order = $this-modelClass.'.'.$this-sortBy.'
 '.strtoupper($this-direction);

 and output : Subscriber.myField myDirection

 then the $this-order is used in the ORDER BY clause

 ORDER BY Subscriber.myField myDirection

 hope this helps

 thomas


 


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Any idea how read views from database?

2006-06-02 Thread John David Anderson

You might want to override the View class, much like what has been  
done with Smarty integration and stuff. You could also look at how  
render works, and override it in your AppController...

Thinking out loud,

-- John

On Jun 2, 2006, at 1:47 PM, Petr Vytlačil wrote:


 Hi CakePeople,
 I want to programme easy guest book system with support use self
 templet for define how gbook look. It crossed my mind that i could  
 have
 save some views (thtml file) to database and read them from db. How I
 can use for show data views which are save in directory views, but how
 i can make force controller to use views from DB?

 I know that i can use SMARTY templet in CakePHP and that I cane read
 from DB, but it is last solvent.

 I thank you for your advice
 P.V


 


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Any idea how read views from database?

2006-06-02 Thread John Zimmerman [gmail]
I think you are going to have to clarify what you need a little bit.So far what we can tell is...You want a guest book system that you can change the look ofYou know about Cake views with thtml files
You are probably trying to get data from the database into your templates.You are thinking about using SmartyYou should be able to do everything without using Smarty. I may be missing the question here but I think running through the blog tutorial in the manual at 
http://manual.cakephp.org should give you a pretty good idea how to setup the guestbook.On 6/2/06, Petr Vytlačil
 [EMAIL PROTECTED] wrote:
Hi CakePeople,I want to programme easy guest book system with support use selftemplet for define how gbook look. It crossed my mind that i could havesave some views (thtml file) to database and read them from db. How I
can use for show data views which are save in directory views, but howi can make force controller to use views from DB?I know that i can use SMARTY templet in CakePHP and that I cane readfrom DB, but it is last solvent.
I thank you for your adviceP.V

Re: Any idea how read views from database?

2006-06-02 Thread John Zimmerman [gmail]
nevermind. I think I did misunderstand part of what was being asked.On 6/2/06, John Zimmerman [gmail] [EMAIL PROTECTED]
 wrote:I think you are going to have to clarify what you need a little bit.
So far what we can tell is...You want a guest book system that you can change the look ofYou know about Cake views with thtml files
You are probably trying to get data from the database into your templates.You are thinking about using SmartyYou should be able to do everything without using Smarty. I may be missing the question here but I think running through the blog tutorial in the manual at 
http://manual.cakephp.org should give you a pretty good idea how to setup the guestbook.
On 6/2/06, Petr Vytlačil
 [EMAIL PROTECTED] wrote:

Hi CakePeople,I want to programme easy guest book system with support use selftemplet for define how gbook look. It crossed my mind that i could havesave some views (thtml file) to database and read them from db. How I
can use for show data views which are save in directory views, but howi can make force controller to use views from DB?I know that i can use SMARTY templet in CakePHP and that I cane readfrom DB, but it is last solvent.
I thank you for your adviceP.V

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---



Re: using CakePHP in unusual way

2006-06-02 Thread Armando Sosa
Is that kind of designers that give us the fame of stupids. Fire them please.On 6/2/06, DJ Spark [EMAIL PROTECTED]
 wrote: They should put static pages in /views/pages//views/pages/home.thtml
/views/pages/contact.thtml/views/pages/about.thtml.. If you are using a framework, you should stick to its conventions, ifnot, you are not using 100% of its power (and simplicity). spark
On 6/2/06, franfran [EMAIL PROTECTED] wrote: Hi all expert in here: I know in CakePHP, the URL is in /controller/action/params.However, I
 have some question to ask when using CakePHP in a small project.In this project, 80% of the website are static content, only a few sections require php programming(e.g. search, news update).The
 enviornment is windows, so no mod_rewrite. 1. Our homepage is 100% static, is it possible to have our homepage named as index.html and store in webroot? 2. if yes in point 1 above, I have to rename 
index.php to somename.php?because all variables in the URL /controller/ation/params will pass to index.html instead of index.php you may wonder why I am asking this?Why not simply rename 
index.html as home.thtml and put it in the views folder?The problem is I am working with some traditional web designers and they refuse to work on the views folder and xxx.thtml files.They prefer putting everything
 in the webroot. and all files should be, e.g., whatsnew.php, products.php...etc..It is easier for them to work in Dreamweaver. This post maybe a bit pointless since CakePHP is not designed in such
 enviornment.However, I want to know what others are thinking. Thank you very much. --[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br-- Armando Sosawww.nolimit-studio.comwww.dospuntocero.info

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Cake Software Foundation Certification

2006-06-02 Thread Armando Sosa
So, to be clear, which of this scenarios will get Cake foundation's Counter-Uncertified-Poser-Unit knockin at my door?1.- I write an online killer app and name it CakePack and sell it to google2.- I write a killer app and name it CakePack and release as opensource
3.- I'm not a certified developer have a big banner on my site that reads: I code CakePHP apps that just work 4.- I'm a teen web-coder and I'm obviously not a certified developer but have a big banner on my site that reads I h4v3 m4d CakePHP 5k1ll2 
5.- I've written an app that will change the world as we know it and I put a disclaimer on the site Developed with CakePHP6.- I've written an app which is certainly shit and I put a disclaimer on the site Developed with CakePHP
7.- I open a blog entitled The unofficial site of all things CakePHP and Tiffany Thiesen -- and I put adsense on it--8.- I've lost my mind and decided to --god forgives me!-- fork CakePHP into my own RailishBiscuitPHP Framework
On 6/2/06, nate [EMAIL PROTECTED] wrote:
 I strongly suggest that you check your local trademark law for details of what you can and cannot do without a licence. Don't blindly believe trademark owners: of course, most will try to convince you that you
 cannot use their appropriated words at all without permission.Have we gone after anyone for simply mentioning CakePHP on their site??No.Rather than taking a letter-of-the-law approach (which seems a bit
confrontational), why not recognize it as an opportunity to (a) supportthe comminuty and (b) score some bragging rights ;-)-- Armando Sosawww.nolimit-studio.comwww.dospuntocero.info

--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


How to editing thtml files in Dreamweaver

2006-06-02 Thread orrinzeng

I created a mxp file of thtml files for Dreamweaver. It let you make
thtml files editable in the design view use Dreamweaver. welcome to
download use it. Thanks.

download url: http://www.elego.cn/attachment.php?aid=1


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



The right way to set a default value for a model

2006-06-02 Thread [EMAIL PROTECTED]

I'm just setting up a new install and have some default values. I'm
using

$this-set('membership_id', $membershipId);

in the controller and then using $membership_id in the view to set the
default value.

It seems more appropriate that the model actually holds the default
value which is then overwritten when an actual record is retrieved but
I can't see that this has been implemented.

So, am I going about this the right way or is there a best practice
that I should be following?

thanks

Sarah


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---