I've just done a survey.
I had:
Surveys id,description,intro (an extended text), status
(planned,running,finished), date started, date finished
Questions id,survey_id,question,sequence
Answers id,question_id,answer,sequence
Responses id,survey_id,email_address
Response_answers, id,question_id,ans
No problem, being severely language limited I guess I panicked and
lost my cool. Heck I can wait two days ;)
Thanks for the templates Shun
Sam D
PS I'm trying to be less cranky...
On 2/5/07, Shunro Dozono <[EMAIL PROTECTED]> wrote:
>
> Hello. Now, Seesaa Blog system is under maintenance.
Hello. Now, Seesaa Blog system is under maintenance.
Please wait two more hours. (According to their schedule)
Thank you.
Shun Dozono.
2007/2/6, Samuel DeVore <[EMAIL PROTECTED]>:
>
> It seems that the link from
> http://cakebaker.42dh.com/2006/07/07/seven-free-layout-templates-for-cakephp
> to
It seems that the link from
http://cakebaker.42dh.com/2006/07/07/seven-free-layout-templates-for-cakephp
to the templates is not longer working. Did anyone grab these
templates by any chance?
thanks
Sam D
--~--~-~--~~~---~--~~
You received this message because
Please help me if possible. Trying to do a simple Survey. Survey has
10 Questions, each question has one of 4 possible Answers. I'm trying
to get the data model correct.
surveys table has id, survey_name, date_created
questions table has id, question
surveys_questions has survey_id,question_i
I am running PHP5 on Gentoo(Linux) with Apache 2.x. I have
mod_rewrite installed.
I recently started working with CakePHP and could not get the
mod_rewrite to work. I kept getting a 404 error when I would do the
example of the blog. (http://localhost/posts/view/1).
After MUCH searching I fina
I have a working example of pagination based off of Nate's blog:
http://cake.insertdesignhere.com/posts/view/16.
It works great. I render the data into an HTML table with sorting on
each column (just like scaffolding views gives you). Now I want to
join in the fields from another related (hasOne
I figured it was something like that. Thanks!
On Feb 5, 3:13 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote:
> The query is being cached.
>
> $this->Product->cacheQueries = false;
>
> On Feb 6, 4:02 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > My site has a backend that uses one function f
The query is being cached.
$this->Product->cacheQueries = false;
On Feb 6, 4:02 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> My site has a backend that uses one function for CRU, and one for D on
> most models. Most of the time I do a save if $this->data isn't empty
> and then do a read
Is there some problem with the inbuilt Cake regex?
if ( empty($address) ){
// empty email address
} else if ( !preg_match(VALID_EMAIL, $address) ){
// invalid email address
} else {
// valid email address
}
--~--~-~--~~~---~--~~
You receiv
Try this:
Click on Start, then Run. Type "cmd"
(do not type the quotes in any of these commands)
You should have a command line window.
Type "cd c:\[path_to_cake]\cake\scripts\",
replacing [path_to_cake] with the actual path
where you installed CakePHP
Type "php bake.php"
See if it
Hello, I don't have much command line experience (I like clicking
nicely labeled things). But I've been trying to work bake. It seems
to work, like it will create the app folder with structure in it, but
when I get to the other stuff, like M V C, it will ask a question
about validation and the w
Hi,
Thanks for the really quick response - much appreciated. I will work
on that bit of code and see what happens.
Many thanks again, Ian
On 5 Feb, 12:46, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
wrote:
> I suggest you override it at the model level, this is possible...
>
> In the mode
I suggest you override it at the model level, this is possible...
In the model that is not working as it was before add this code.
function loadInfo() {
$db =& ConnectionManager::getDataSource($this->useDbConfig);
if (!is_object($this->_tableInfo) &&
$db->isInterfaceSupported
Hi all,
Can anybody explain to me please why change 4426 was needed (disabling
loadinfo on models where useTable was false)?
I ask because I have I have an app that sets the table for one model
dynamically depending on the logged in user ID. This change breaks
that part of the app.
If I remove
Oh [EMAIL PROTECTED](*^#$%^&* [EMAIL PROTECTED] (*&^%$#
It's just great.
Beer (you are over 18, right?) for all cake developers and supporters
(when anyone came to Lublin in Poland) :-).
I promise to read more carefully any Cake documentation :-)
--~--~-~--~~~---~-
Go to:
http://www.cricava.com/blogs/index.php?blog=6&title=chilling_out_thanks_to_c
akephp&more=1&c=1&tb=1&pb=1
and see me wearing my CakePHP gear :)
Get your own at:
http://www.cafepress.com/cakefoundation
It is another way of supporting the CakePHP team.
-MI
--
Besides Cake's built-in e-mail validation, there is another one
someone suggested:
https://trac.cakephp.org/ticket/1457
On Feb 5, 10:20 am, "Tazz" <[EMAIL PROTECTED]> wrote:
> Trying to use the reg express:http://regexlib.com/Search.aspx?k=email
> By Philippe Benthien
>
> and I get: Parse error:
Trying to use the reg express: http://regexlib.com/Search.aspx?k=email
By Philippe Benthien
and I get: Parse error: syntax error, unexpected '|', expecting ')'
in /usr/home/ads/www/cake/inbeat/models/mailing_list.php on line 8
Either the expression is to long. Or cake doesn't understand these
ty
My site has a backend that uses one function for CRU, and one for D on
most models. Most of the time I do a save if $this->data isn't empty
and then do a read at the end to populate the form with the results of
the save.
Recently, I needed to do read additional data in the same model before
the s
On Feb 5, 6:28 pm, "AD7six" <[EMAIL PROTECTED]> wrote:
> On Feb 5, 5:52 pm, "Jacek" <[EMAIL PROTECTED]> wrote:
>
> > Hi all
> > $ajax->link(...) renders standard link with javascript observer code.
> > So, it could be possible to use the links in nojavascript browsers but
> > application should
On Feb 5, 5:52 pm, "Jacek" <[EMAIL PROTECTED]> wrote:
> Hi all
> $ajax->link(...) renders standard link with javascript observer code.
> So, it could be possible to use the links in nojavascript browsers but
> application should recognize that browser has not javascript and
> change layout from
Fantastic -- thanks.
On Feb 4, 11:17 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]>
wrote:
> Richard,
>
> Before 1.2.x.x is released stable I will have a CLI script that will
> generate the .pot files for an application. I have it working with all the
> possible translations functions now
I do it quite often. I have sites that generate images from gd and
sites that use ChartDirector. In the controller turn off the
rendering engine
$this->autoRender = false;
or
$this->layout = '';
You might have to set the MIME type if JPGraph doesn't
header("Content-type: i
Hi all
$ajax->link(...) renders standard link with javascript observer code.
So, it could be possible to use the links in nojavascript browsers but
application should recognize that browser has not javascript and
change layout from ajax to standard.
How to do it?
Write some code in app_controller
On Feb 5, 4:39 pm, "Ilafra" <[EMAIL PROTECTED]> wrote:
> hi guys,
>
> I'd like to show a little pop-up in oder to inform the user that an
> operation (like "edit" or "add" data) has been correctly executed and
> to include in the pop-up an "Ok" button that redirects the user to the
> view that I
thanks very much for the replies - i'll post back here when i get to
this stage in my app.
On 5 Feb, 15:48, "lloydhome" <[EMAIL PROTECTED]> wrote:
> I think all you will need is to first verify that your User model can
> access users and your Product model can access products from their
> respect
anyone? bueller?
On 2 Feb, 14:29, "lukemack" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to decide on an approach for integrating fullsitesearchinto
> a cakephp app. I have used phpDig before (on a non-cake app) but have
> found this article using Zend's lucene component:
>
> http://bakery.cakeph
I think all you will need is to first verify that your User model can
access users and your Product model can access products from their
respective databases. Then create your association between the two as
normal. The difference is that you should set the 'external'
attribute to true in the ass
I would suggest looking also in the models section of the
http://manual.cakephp.org and look in particular at the array notation
for defining associations, here you should be able to see how you can
override the conventions in cakephp with some configuration to take
care of 'out of spec' database
hi guys,
I'd like to show a little pop-up in oder to inform the user that an
operation (like "edit" or "add" data) has been correctly executed and
to include in the pop-up an "Ok" button that redirects the user to the
view that I wish.
I know that CAKE allows to this by the flash() method but it
Hi,
I have just installed 1.1.13.4450 in my existing application and have
been getting the error
"Fatal error: Call to undefined function ife() in K:\net\xampp\htdocs
\cake\libs\view\helpers\ajax.php on line 667"
ife seems to be a new function introduced in 1.2 according to https://
trac.cakeph
Thank you guys for the answers!
So the reasons why I want to have two apps instead of one are:
* It's easier to maintain one app without running the risk of
"damaging" the other one.
* Reusability
* What if I only want ONE of the two apps?
On the other hand I want the apps to access the same da
Hi, every bakers.
I am using Cake for a while already. Now, I wanna make a ajax function
to check username is exist or not when they wanna sign-up.
So, I add following lines in my register.thtml:
input('User/email', array('size' =>
'20','id'=>'UserEmail'))?>
observeField('UserEmail', arr
On 2/5/07, lukemack <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> i'm going to need to access some legacy data from another system in my
> cake app. i understand that i can add an additional database
> connection in the database config file and have the model use that
> connection. however, if i then nee
Hello,
Now my new hobby is to look up 'Wordpress + CakePHP' topics in the
Internet. But nothing real :(
I have quite big project on Cake (26 tables) and want to use WordPress
as Community provider on that site. I installed WP in /community/ in
cake's webroot directory. I use code from cake's defa
hi,
i'm going to need to access some legacy data from another system in my
cake app. i understand that i can add an additional database
connection in the database config file and have the model use that
connection. however, if i then need the data in a legacy database
(e.g. product data) to relat
Thanks for the 411 Larry. Sent my request.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.a
http://cakeforge.org/projects/translations/
Join that project on Cakeforge.
All translations have been moved to this project now
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On 2/5/07, Ámon Tamás <[EMAIL P
Hey
Im currently working on a semi-port of phpdoctrine for CakePHP - and was
wondering if anyone would like to help out or give some feedback on the
level of compat there should be between CakePHP model methods and Doctrine.
Currently it supports limited amount of form helpers ect.
/JIppi
Oh well, there you go. You have the built-in CakePHP GC for session DB :)
function __gc($expires) {
$db =& ConnectionManager::getDataSource('default');
$table = $db->fullTableName(CAKE_SESSION_TABLE);
$db->execute("DELETE FROM " . $db->name($table) . " WHERE " .
$db->na
See this thread:
http://groups.google.com/group/cake-php/browse_thread/thread/7091708eeb605dd
3
There you'll see that you need to upload the translated files to:
http://groups.google.com/group/cake-php/files
And then send a new google message something like "[Translation] New
Language: Hungari
try bumping the debug level in config/core.php and see if there are
some errors listed there.
Sam D
On 2/5/07, yshah <[EMAIL PROTECTED]> wrote:
>
> Hello Samuel
>
> Thanks for that tip. I Capitalized it as you noted, and I still have
> the same issue. Any other ideas as to why there are warni
Hello Samuel
Thanks for that tip. I Capitalized it as you noted, and I still have
the same issue. Any other ideas as to why there are warnings with the
Cake libraries? Could it be a PHP setup issue on my end?
Thanks,
Yasir
On Feb 5, 6:30 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> Try
>
Sorry, mistake (..) access to site is http://examples.com/dir/. (...)
On 5 Lut, 15:28, "tms" <[EMAIL PROTECTED]> wrote:
> Hi, i have a problem...
>
> I have installed cake into directory "dir" of the my hosted root, and
> access to site ishttp://examples/dir/.
> All .htaccess files not changed.
>
Try
var $name = "Hotel"; // <-- note that this is capitalized
On 2/4/07, yshah <[EMAIL PROTECTED]> wrote:
>
> Hey all! I'm trying out CakePHP for the first time and wanted to try
> out scaffold like in Ruby.
>
> I setup the database:
>
> var $default = array('driver' => 'mysql',
>
Hi, i have a problem...
I have installed cake into directory "dir" of the my hosted root, and
access to site is http://examples/dir/.
All .htaccess files not changed.
Currently, when i have links to the controller/action on home page
(access http://examples/dir/) created by $html->link method,
Yes of course you can, it is still PHP :) Using a component is more OOP,
cakish way, but you sure can use setcookie().
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool,
Thomas wrote:
> I'm trying to get a query from a database table of the total number of
> members (SELECT COUNT(*) as number FROM 'table_name'). I want it to
> be stored in a global variable. Can someone tell me how and where to
> do this? In the end I need it inside a template file to show it.
>
I'm trying to get a query from a database table of the total number of
members (SELECT COUNT(*) as number FROM 'table_name'). I want it to
be stored in a global variable. Can someone tell me how and where to
do this? In the end I need it inside a template file to show it.
I tried app_controller a
Hello,
I made a Hungarian translation from locale. How can I upload this?
--
Ámon Tamás
http://linkfelho.amon.hu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
Hi,
I have a problem with pagination of search results, when a criteria
is specified. I used pagination helper in bakery of cakephp. First
time when I submit the form with criteria I get the correct results,
but when I navigate to next page it displays the results without
following the given cr
many thanks for the reply. I think I will go with othauth and see how
I get on.
On 5 Feb, 02:22, Langdon Stevenson <[EMAIL PROTECTED]> wrote:
> Hi Lukemack
>
> I have used Othauth successfully, and also dauth with ACL. Both work
> fine.
>
> Othauth may be easier to implement in a system like you
ok - maybe I got out on the wrong side of the bed, apologies for being
cranky.
i think the second link posted by Mariano Iglesias will do what you
want? i need to implement something similar in my current project so
will post back here with any results.
lukemack.
On 5 Feb, 08:30, "Sergei" <[EMA
I am trying to get JPGraph working in Cake as a vendor.
I have changed any references to include, include_once, require_once
in the latest JPGraph distribution so there are no errors from nested
include files. My problem is that if I send the output of the
graphing function (i.e. using the $gra
On 2/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> that's normally the case yes. But this time you also have to replace
> the index file from your webroot.
Interesting... will have to see what is new in there
Cheers
Tarique
--
=
> > One question I have is what is the easiest way to upgrade to the
> > latest version. Can I just copy my whole app folder across? Or do I
> > need to just copy the user files I have created?
>
> Just rename the old cake folder and upload a new cake folder - try out
> if everything works and th
With the holidays over we have been getting ready to upgrade our
production systems to 1.1.12. Now with '13 out the pressure is on.
>From reading this list there are still many on 1.1.10 or even
earlier. Here is one way we have reduced our workload and code
complexity. I do not like littering t
Hi,
I'm currently trying to save two models from a single form. While the
"saving" part is working just fine, i can't find a way to display
error messages in my form. I'm not passing any paramaters to the
validateErrors() function in my controller, should I ?
In other words, is it enough to call
Hi,
I have a problem with pagination, while searching with a criteria. I
used pagination helper from bakery of cakephp. First time when I
submit the form with the condition I get correct search results, but
when I navigate to the next page it displays the results without any
where clause.How can
Thanks Mariano,
However, i still think that session-valid and session-expire is 2
different things.
My case is like this. I'm using a simple authentication based on cake
session stored in mysql.
When a user log in, a session is assign by a unique username. So, when
an unauthorised
user visit the
Thanks Biesbjerg,
but it's usefull to validate the userAgent in the session to avoid
session riding ...
i don't want to open the doors...
Hausburger.
On 5 Feb., 01:13, "biesbjerg" <[EMAIL PROTECTED]> wrote:
> I use SWFUpload.
>
> But you have to hack the core though.
>
> In app/config/bootstra
allow autoComplete only on autocomplete action requests
a test like
if($controller->action == "autocomplete")
{
// do the logic
}
then when calling $ajax->autoComplete() specify the action to be
autocomplete.
if you don't want that, specify some parameters along with the
autocomplete call, add
Hello,
I have a site, what I like to make multilangual and I like to change my
urls from /controller/action to /lng/controller/action. How can I make this?
--
Ámon Tamás
http://linkfelho.amon.hu
--~--~-~--~~~---~--~~
You received this message because you are s
Tarique Sani,
Thanks a lot. It is now working.
Vidya
--~--~-~--~~~---~--~~
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 gr
> https://trac.cakephp.org/browser/branches/1.1.x.x/cake/libs/session.p...
there is also delete row method with _destroy but it seems
never to be called. Also i found passwords in the session vars,
but thats another issue. Hmm. I'm considering switching back
to session file storage.
J.
--~--~--
Daniel Hofstetter said:
>
> There is no book available yet, but try the manual (http://
> manual.cakephp.org)
or try this :)
http://groups.google.com/group/cake-php/browse_thread/thread/a967f1218a43ff5c/eb422cd8f6b691fd#eb422cd8f6b691fd
--~--~-~--~~~---~--~~
Y
I wonder what that does?
https://trac.cakephp.org/browser/branches/1.1.x.x/cake/libs/session.php#L327
Cheers,
AD7six
Please note:
The manual/bakery is a good place to start any quest for info.
You may get your answer quicker by asking on
the IRC Channel (you can access it with just a browser
he
On Feb 5, 9:52 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 2/5/07, vidya <[EMAIL PROTECTED]> wrote:
>
> > I have checked the pagination.php, but there is no newline.
>
> remove the last ?> in pagination component and let us know if that works
Hi vidya,
The error is on line 1, try Ma
On 2/5/07, vidya <[EMAIL PROTECTED]> wrote:
> I have checked the pagination.php, but there is no newline.
remove the last ?> in pagination component and let us know if that works
Cheers
Tarique
--
=
PHP for E-Biz: http://sanisoft.com
Hai,
I have checked the pagination.php, but there is no newline.
Thanks,
Vidya.
--~--~-~--~~~---~--~~
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
On 2/5/07, cdomigan <[EMAIL PROTECTED]> wrote:
> One question I have is what is the easiest way to upgrade to the
> latest version. Can I just copy my whole app folder across? Or do I
> need to just copy the user files I have created?
Just rename the old cake folder and upload a new cake folder -
ok thanks :-)
Actually I know how to make login process, but with Cake it seems like
persistent login need a whole additional component to set a cookie.
Can't we just use setcookie() function in our controllers? I didn't
tried it yet.
On 5 Фев., 13:24, "Mariano Iglesias" <[EMAIL PROTECTED]>
wro
Ok so make my own dynamic page controller. So how about if I want the urls
to be:
Domain.com/home
Domain.com/about
Domain.com/projects
Etc ...
So would I create specific methods in my controller for each of those:
e.g.
function home()
{
}
function about()
{
}
function projects()
{
}
Thanks,
So I have a cookbook application with recipes and categories:
Recipes
id:title:recipe:created_on:category_id
Categories
id:name
I am trying to use bake to setup the associations between the categories and
recipes:
CATEGORY MODEL
class Category extends AppModel {
var $name = 'Category
Ok,
Thanks a lot for your answers :-)
Best regards
Christophe.
On 2 fév, 09:28, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 2/2/07, Eric C Blount <[EMAIL PROTECTED]> wrote:> Submit them as
> enhancement tickets onhttps://trac.cakephp.org/. Include
> > patches where applicable.
>
> +1
>
76 matches
Mail list logo