Hello,
my database table contain a date in integer to store a timestamp.
When , in my form i write this in my form :
?php echo $form-
input('date',array('type'='date','label'=false,'dateFormat'='DMY'));?
i can get the data like this to store them in my date column:
$m = (integer)
but the latter needs to be converted
into some kind of date string first.
In any case, I can't quite understand what it is you need to do.
Perhaps all of this is unnecessary.
On Sun, Jun 8, 2008 at 6:57 AM, foxmask [EMAIL PROTECTED] wrote:
Hello,
my database table contain a date in integer
add a link to an open source CMS and to the french cakephp community
Cliquez sur http://groups.google.com/group/cake-php/web/cakephp-in-the-wild
ou copiez et collez le lien dans la barre d'adresse du navigateur si
cela ne fonctionne pas.
--~--~-~--~~~---~--~~
You
i've done some tests and a simple one is in core.php :
Cache::config('default', array('engine' = 'File',
'path'=
realpath(dirname(__FILE__) .DS.'..'.DS.'tmp'.DS.'cache'.DS.'fr'.DS)
));
and when i look into my /home/foxmask/www/tmp/cache/fr/ directory (in
views
Hello,
i would like to avoid to change something inside cakephp .
i tried in the core.php file :
Cache::config('default', array('engine' = 'File','path'=
dirname(__FILE__)
.DS.'..'.DS.'tmp'.DS.'cache'.Configure::read('Config.language')));
but unfortunatly, Config.language is not set yet at
Hi,
as CakePHP is able to detect the language of the visitor on the
website, i would like to use the cache and put the language in front
of the cache filename like this :
tmp/cache/views/fre_articles_index.php
actually i have
tmp/cache/views/_articles_index.php
What happens actuallay ?
when
needs, especially with the
caching of views .etc ..
hth
On May 15, 10:11 pm, foxmask [EMAIL PROTECTED] wrote:
Hi,
as CakePHP is able to detect the language of the visitor on the
website, i would like to use the cache and put the language in front
of the cache filename like this :
tmp
I saw in this post
http://groups.google.com/group/cake-php/browse_thread/thread/fc6927c768d743c0/165d40eb845faa70?lnk=gstq=starboxutoken=_OMNxCsAAAB94UAlaOjWovwvAR_0zjZXHAAmJKq-OJ6hgFYeyBeUiehFHpEPJkSjXQgT9j0zljY
that someone spoke about Starbox with CakePHP.
Can someone provides us some example
Hello,
i would like to use the form help to migrate this :
lilabelinput type=checkbox name=p_fids[] value=?php echo
$forum['Forums']['id']? class=checkbox ?php echo $options ? /?
php echo $forum['Forums']['forum_name']; ?/label/li
where
$options is the result of
if (
Hello,
can someone help me with the FormHelper and an array of checkboxes ?
Regards.
On 25 fév, 22:51, foxmask [EMAIL PROTECTED] wrote:
Hello,
i would like to use the form help to migrate this :
lilabelinput type=checkbox name=p_fids[] value=?php echo
$forum['Forums']['id']? class=checkbox
Hello
nobody to give a suggestion ?
On Jan 18, 9:39 pm, foxmask [EMAIL PROTECTED] wrote:
Good evening,
I would like to test if my database table exists or not
If no, i will display a message to suggest to install the software
If yes, i will Route::connect() to the main page
on my side i get the grid and the string :
{total:2, users:[{username:foxmask, title:,
realname:}, {username:Invité, title:, realname:}]}
display just after the grid .
On Jan 11, 11:15 pm, hydra12 [EMAIL PROTECTED] wrote:
OK, the forms tutorial is up now. You can find it
Good evening
On windows with WampServer my webroot does not change.
but on linux here is what's happened :
when i'm on http://www._.com/ the webroot value is /
when i'm on http://www._.com/news the webroot value is /home/
foxmask/cakephp/ (the directory where cakephp is installed
i tried to repeat the step of your example with ext 1.1.1 here is my
ajax.ctp
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=?php
__('lang_iso_code') ?
lang=?php __('lang_iso_code') ?
I'd like it too
As the example provided concerned extjs1.1 and does not work anymore
with extjs 2.0.
Kind regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
i think the better will be to dump my setting database table in
bootstrap.php doesnt it ?
On Jan 2, 5:49 pm, foxmask [EMAIL PROTECTED] wrote:
Hello
In the routes.php i cant know what is the default route to the default
plugins at this moment.
At the startup of my app i read the database
Hello,
everything is in the subject
How can I store the data i wirte with Configure::write in the same
file i loaded with Configure::load ?
As i can see, we i use Configure::store() this create a new file in
the cache/persistent/ directory but not in the same file I loaded with
Configure::load()
Hello
In the routes.php i cant know what is the default route to the default
plugins at this moment.
At the startup of my app i read the database to find which is the
default plugin to point to but when i write this in my main
app_controller.php :
public function beforeFilter() {
Hello,
I'm integrating punBB in one project
i'm saying mylself i could integrate several forum softwares by
creating an interface class (in Java term) that will be more
appropriate, no ?
If so how in cakephp do we make an interface ?
Kind Regards.
That said - I don't see any *one* framework becoming an industry
standard in PHP world
in France, Symfony seems to be this one in the professional world (i
mean, used in companies).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
i've a controller
app/controller/reports_controller.php (which count warns to be
displayed of not)
that is used in
app/view/elements/top.ctp like that :
$reports_lists = $this-requestAction('/reports/
index',array('return'=false));
if (!empty($reports_lists['nb_report']))
notice :i use cakephp 1.2.x.x
--~--~-~--~~~---~--~~
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
in cake/libs/object.php i've changed the following
if (isset($this-plugin)) {
#$extra['plugin'] = $this-plugin;
}
and it's working
but i dont think it's the best
On 16 déc, 11:21, foxmask [EMAIL PROTECTED] wrote:
notice :i use cakephp 1.2.x.x
?
On Dec 6, 2007 10:15 AM, nate [EMAIL PROTECTED] wrote:
On 1.2 you can set the 'type' key in the association, which defaults
to LEFT.
On Dec 6, 7:39 am, foxmask [EMAIL PROTECTED] wrote:
Hi Baz
We suggested me to do this :
in the topics controller :
function lastTopics
, Baz L [EMAIL PROTECTED] wrote:
I ran into a need for this today.
In the interest of time, I just trim the array I get back after the
fact, however...is there someway to do this?
--
Baz L
Web Development 2.0http://WebDevelopment2.com/
On Dec 1, 1:30 pm, foxmask [EMAIL PROTECTED] wrote
Hi,
PunBB create a cookie that way :
setcookie($cookie_name, serialize(array($user_id, md5($cookie_seed.
$password_hash))), $expire, $cookie_path, $cookie_domain,
$cookie_secure, true);
i dont find how CakePHP could read it.
I've read the cookie component and all i conclude is I need to make
gooed evening
any idea about inner join ?
On Nov 29, 12:39 pm, foxmask [EMAIL PROTECTED] wrote:
Hi i'd like to know what i need to do and in what model, to be able to
use this SQL query
SELECT t.id, t.subject FROM topics AS t INNER JOIN forums AS f ON
f.id=t.forum_id LEFT JOIN forum_perms
Hi i'd like to know what i need to do and in what model, to be able to
use this SQL query
SELECT t.id, t.subject FROM topics AS t INNER JOIN forums AS f ON
f.id=t.forum_id LEFT JOIN forum_perms AS fp ON (fp.forum_id=f.id AND
fp.group_id='xxx') WHERE (fp.read_forum IS NULL OR fp.read_forum=1)
AND
hi
i dont know how to do it with cakephp
Currently i have the following code :
div id=menu
?php tpl::bloc('menu');?
?php tpl::bloc('active_topics');?
?php tpl::bloc('login');?
[...]
/div
the class tpl and bloc method looks like this
class tpl
{
function bloc($bloc)
{
I've read the theme.php which contain the ThemeView class and i dont
see how i can make a specific Helper for a given theme.
i mean currently to deal with theme i have
view/themed/mytheme/layouts/
view/themed/mytheme/lelements/
view/themed/mytheme/articles/...
view/themed/mytheme/blog/...
etc...
what does it do more than cake bake ?
just the 'A' ?
On 28 nov, 15:04, kiang [EMAIL PROTECTED] wrote:
Download here:http://twpug.googlecode.com/files/powerbake.php.zip
1. Download and extract the file to cake/console/libs/powerbake.php
2. Try to use this script as bake:
cake.php powerbake
i made elements and call them by ?php echo $this-
renderElement('menu') ?
and so on...
and put the call_user_function() ... to the garbage.
foxmask a écrit :
hi
i dont know how to do it with cakephp
Currently i have the following code :
div id=menu
?php tpl::bloc('menu');?
?php tpl
D:\wamp\www_cakephp\cake\consolecake bake help
Welcome to CakePHP v1.2.0.5875 pre-beta Console
---
App : console
Path: D:\wamp\www_cakephp\cake\console
---
CakePHP Bake:
. . $this-themePath . /pre;
}
}
i enter in the __construct method all is well define and set
but the files i put in the elements and layouts are not used.
do i miss somthing else ?
Kind Regards.
On 27 nov, 08:54, foxmask [EMAIL PROTECTED] wrote:
Hi,
i already tried
it seems we also need to have this directory tree
app/view/themed/themeA/view1
app/view/themed/themeA/view2
app/view/themed/themeB/view1
app/view/themed/themeB/view2
plus
webroot/themed/themeA/
webroot/themed/themeB/
On 27 nov, 10:00, foxmask [EMAIL PROTECTED] wrote:
i made others tests
hello,
i'm trying to use this class to be able to use theme with cake but i
really dont know how to do.
i've created :
webroot/themed/foobar/layouts
webroot/themed/foobar/elements
put default.php in layout directory
and in the app_controller did
public $theme = PT_DEFAULT_THEME;
class
any suggestion on how we have to proceed to be able to use themes ?
Kind Regards
On Nov 26, 4:19 pm, foxmask [EMAIL PROTECTED] wrote:
hello,
i'm trying to use this class to be able to use theme with cake but i
really dont know how to do.
i've created :
webroot/themed/foobar/layouts
Hi,
i already tried it, and also, as suggest in another thread, copying
from cake/view/theme.php in the myapp/view directory
that does not solve the issue.
may be the theme management is not ready yet .
Kind Regards.
On 27 nov, 02:48, Gwoo [EMAIL PROTECTED] wrote:
try setting var $view =
how looks like your default.po and what is the exact __() content ?
my default.ctp is
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=?php
__('lang_iso_code') ?
lang=?php
if you put a simple __('foo') in a view and in default.po
msgid foo
msgstr bar
does it work when you access the view ?
On Nov 24, 5:27 pm, cronet [EMAIL PROTECTED] wrote:
no,
it's the latest stable 1.2 alpha
On 24 Nov., 17:26, foxmask [EMAIL PROTECTED] wrote:
cakephp 1.1.x.x
class AppController extends Controller {
public function __construct() {
parent::__construct();
}
}
solve the issue
On 23 nov, 17:36, FoxMaSk [EMAIL PROTECTED] wrote:
Hi,
i'm using cakephp 1.2.x.x
i did cake bake to build all my Model View and Controller
cakephp-fr.org is not free.
cakephp-france.org is free or better cakephp.fr is free too (at the
same price of .org)
On Nov 24, 12:49 am, pluriels [EMAIL PROTECTED] wrote:
thanx for the answers.
I started to use cake about one year ago and at that time every one
was speaking about the wiki.
Hi,
i'm using cakephp 1.2.x.x
i did cake bake to build all my Model View and Controller
here is my model :
?php
class NewsMain extends AppModel {
var $name = 'NewsMain';
var $useTable = 'news_main';
var $validate = array(
'title' = VALID_NOT_EMPTY,
Hi,
i was looking for a french community too and found also cake pour
tous (means cake fo all)
but it seems it's not maintaining (8months old, the most recent post).
and cakephp-fr google group is not so active too.
@ Lionel : i can try to
- helping me to keep some kind of french community
hello
when we do cake bake controller and choose one of the list,
i'd like to be able to rename the controller class name (by giving the
$useTable)
currently i dont like the way the database tables are named,
so when i do cake bake model that's create a model that i modify by
renaming the model
ok, I understood
On Nov 22, 7:15 pm, Gwoo [EMAIL PROTECTED] wrote:
yes, you are missing something. Bake is not meant to satisfy special
cases. As a good friend would say, Edge case, move on.
Bake works based on the conventions in Cake. If you do not follow
these conventions because you do
Hi,
in the boostrap.php i call a vendor script that does a lot of stuff
one of them is to get the punbb (a BB sofware) config
class foxtal
{
public $pun_config;
{
public function __construct()
# Load cached config
if
Undefined variable: foxtal
where is the mistake ?
Kind Regards.
On 21 nov, 12:29, Repsah [EMAIL PROTECTED] wrote:
Inizialize the class in your app_controller and export it to views using the
set() method.
On Nov 21, 2007 12:18 PM, FoxMaSk [EMAIL PROTECTED] wrote:
Hi,
in the boostrap.php i
won't call.
On Nov 21, 2007 1:09 PM, FoxMaSk [EMAIL PROTECTED] wrote:
i tried :
class AppController extends Controller {
public function index() {
$foxtal = new foxtal();
$this-set('foxtal', $foxtal);
}
}
and then in default.ctp i
', $foxtal);
}
}
and access to http://localhost/ and do ?php echo $foxtal['my_index'] ?
in the layout
everything goes well
BUT as soon as i do http://localhost/article/index
the same echo in my the view give a NOTICE undefined index ...
Why ?
Kind Regards
On 21 nov, 13:54, FoxMaSk
Good News, as i have an entire CMS to migrate 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,
] y
Fatal error: Allowed memory size of 188743680 bytes exhausted (tried
to allocate 264 bytes) in D:\wamp\www_cakephp_
1.1\cake\libs\class_registry.php on line 300
On Nov 15, 6:06 pm, FoxMaSk [EMAIL PROTECTED] wrote:
On Nov 15, 5:24 pm, Gwoo [EMAIL PROTECTED] wrote:
why are passing a path
a better way will be to migrate my lib somewhere in the CakePHP tree,
to be used anywhere in all the plugins, is it possible ?
On Nov 16, 11:22 am, FoxMaSk [EMAIL PROTECTED] wrote:
in the same idea :
in my vendor libs i need to access to the database but how could i ?
if i want to use all
in the same idea :
in my vendor libs i need to access to the database but how could i ?
if i want to use all method find and findAll etc.. how do i have to
do ?
kind Regards.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
http://bakery.cakephp.org/articles/view/confcomponent-db-based-configuration-tutorial
could do the trick ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
guess just including it is
the way to go... But do it like
vendor( 'themes'.DS.CMS_DEFAULT_THEME.DS.'_top' );
On Nov 16, 2:28 am, FoxMaSk [EMAIL PROTECTED] wrote:
Hi,
can someone give me some tips on how to proceed ?
thanks
kind regards
Hi,
i'd like to know where i can put a file containing constantes that can
be used everywhere (view/model/controller) ?
if in vendors directory , where do i do the vendor() call ?
if not which directory ?
thanks you for your help.
Kind Regards.
thanks !
On Nov 16, 8:55 pm, chad [EMAIL PROTECTED] wrote:
app/config/bootstrap.php
On Nov 16, 9:10 am, FoxMaSk [EMAIL PROTECTED] wrote:
Hi,
i'd like to know where i can put a file containing constantes that can
be used everywhere (view/model/controller) ?
if in vendors directory
Hi,
i plan to migrate a complete CMS which use is own kind of MVC
pattern.
first of all i show the directories tree of my CMS,
second i show what i did to migrate to cake
and finally ask some questions of oragnisation ;-) to clarify my mind
This CMS uses several modules (by module we think
{
var $default = array('driver' = 'mysql',
'connect' = 'mysql_connect',
'host'
= 'localhost',
'login' = 'foxmask',
'password' = 'foxmask',
'database' = '',
'prefix' = '');
/*var $test = array('driver' = 'mysql
because even without -path the issue is met...
On Nov 15, 5:24 pm, Gwoo [EMAIL PROTECTED] wrote:
why are passing a path?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
Hi,
can someone give me some tips on how to proceed ?
thanks
kind regards.
--~--~-~--~~~---~--~~
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 Nov 15, 5:24 pm, Gwoo [EMAIL PROTECTED] wrote:
why are passing a path?
i also did
cake schema generate
but even this produce the error.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To
63 matches
Mail list logo