I'm trying to create a login system with using two different tables one for
the board administrator othe apar customer and am having a problem because
both logins use by default the Users table and I'm unable to change ..
If they can deem a look at my code
Boa tarde,
Sou iniciante em CakePHP e estou a desenvolver um sistema para eu mesmo
utilizar.
O meu problema começou quando eu passei o sistema para um Servidor Web,
hospedado com a HostGator, em uma Hospedagem de Revenda. Quando tento logar
na área administrativa no meu computador usando o
I'm building and application with cakePHP and I'm trying to achieve
something like a Wordpress blog archive.
Let's imagine that i have this table in my database:
- Posts
- id
- title
- body
- created
- modified
and i want the output something like this:
How's it going?
I have a problem with cakePHP, I'm new to it and struggling with it. Let me
pour onto you guys my situation:
I'm developing a system for a University here in Brazil. In this sytem I've
got the following models: - Country; - State; - City; - University; - Unit;
- Class;
Ok.
Has anyone done an application built in CakePHP and EventSystem to consume
webhooks ?
My problem it's I don't know how to start it. There are a example app that
can show me?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You
, 12 de março de 2013 17h15min12s UTC-3, Lucas Simon
Rodrigues Magalhaes escreveu:
Has anyone done an application built in CakePHP and EventSystem to consume
webhooks ?
My problem it's I don't know how to start it. There are a example app that
can show me?
--
Like Us on FaceBook https
Array(
[168] = Array
(
[check] = 0
)
[169] = Array
(
[check] = 1
)
[170] = Array
(
[check] = 1
)
[171] = Array
(
[check] = 1
)
[172] = Array
(
[check] = 0
)
);
I try it, $a =
:
This should do it:
$keys = array_keys(Hash::remove('{n}[check=0]'));
On Wed, Dec 5, 2012 at 11:50 AM, Lucas Simon Rodrigues Magalhaes
luca...@gmail.com javascript: wrote:
Array(
[168] = Array
(
[check] = 0
)
[169] = Array
(
[check] = 1
Fatal Error
*Erro: * Call to undefined method
PHPUnit_Framework_AssertionFailedError::getComparisonFailure()
*File:
*/home/lucas/public_html/eventos-backend/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
*Line: * 252
Whats wrong?
--
Like Us on FaceBook https://www.facebook.com
($content);
$pdf-Output('test.pdf');
}
catch(HTML2PDF_exception $e){
die($e);
}
The error:
Fatal Error*Error: * Class 'HTML2PDF' not found
*Line: * 196
*Notice: * If you want to customize this error message, create
app\View\Errors\fatal_error.ctp
My folder:
Lucas Simon@LUCAS-PC app/Lib/html2pdf
I am using cake2.2
Em terça-feira, 16 de outubro de 2012 11h50min46s UTC-3, MaJerle.Eu
escreveu:
your file is .class ??..and tell us which cake u use
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/10/16 Lucas Simon Rodrigues Magalhaes luca...@gmail.comjavascript:
Hiii, good
change this variable $game = $this-Game-find('all');
to
$games = = $this-Game-find('all');
in IndexsController .
Em quarta-feira, 29 de agosto de 2012 05h08min00s UTC-3, Nareh Tarasyan
escreveu:
Hi people.
I'm a beginner in CakePHP.
And I need help.
I try to use loadModel.
I
And ...
$this-set(compact('games'));
Em quarta-feira, 29 de agosto de 2012 08h40min58s UTC-3, Lucas Simon
Rodrigues Magalhaes escreveu:
change this variable $game = $this-Game-find('all');
to
$games = = $this-Game-find('all');
in IndexsController .
Em quarta-feira, 29 de agosto de
I doing it:
$this-redirect(array('controller'='customers','action' = 'view',$id));
but do not work.
Invalid customer
*Error: * The requested address *'cadastros/admin/customers/view'* was not
found on this server.
--
You received this message because you are subscribed to the Google Groups
($this-referer());
2012/8/24 Lucas Simon Rodrigues Magalhaes luca...@gmail.com javascript:
I doing it:
$this-redirect(array('controller'='customers','action' = 'view',$id));
but do not work.
Invalid customer
*Error: * The requested address *'cadastros/admin/customers/view
1. //$id = $this-request-data['ProductDetail']['customer_id'];
2.
forget this line comment
$id = $this-request-data['ProductDetail']['customer_id'];
Em sexta-feira, 24 de agosto de 2012 15h01min02s UTC-3, Lucas Simon
Rodrigues Magalhaes escreveu:
After add the product detail, I
Uhuhuuulll
Thnx dude!!!
Em sexta-feira, 24 de agosto de 2012 15h11min35s UTC-3, ivnrmc escreveu:
OR
$this-redirect('/customers/view/'.$id);
:-)
2012/8/24 Lucas Simon Rodrigues Magalhaes luca...@gmail.com javascript:
1. //$id = $this-request-data['ProductDetail']['customer_id
of User
model. And so registerValidate is being sent directly to the
database as a query.
Is this model in a plugin? What is the file name? What does the first
line have? eg.
class User extends Appmodel {
On Fri, Aug 10, 2012 at 4:29 PM, Lucas Simon Rodrigues Magalhaes
luca...@gmail.com
I don't understand it. I define the correct names of Model Files and the
cake don't recognize the model User? How?
Em segunda-feira, 13 de agosto de 2012 09h41min39s UTC-3, Lucas Simon
Rodrigues Magalhaes escreveu:
I have a model User.php in plugin, look my gist[1]
[1] https
escreveu:
On Monday, August 13, 2012 8:54:04 PM UTC+7, Lucas Simon Rodrigues
Magalhaes wrote:
I don't understand it. I define the correct names of Model Files and the
cake don't recognize the model User? How?
you might need to tell AuthComponent which userModel to use.
Typically, you'll
hii guys!!!
I have a error[1] in any save data of my actions in my UserController.
The error is in my function to validate[2] a add[3] user
[1] http://pastebin.com/M3hSWD9k
[2] http://pastebin.com/9Wg1Aujm
[3] http://pastebin.com/rZctnxFX
--
You received this message because you are
I'm using this, $view = ClassRegistry::getObject('view'); in my Helper but
does not work.
I imported App::uses('ClassRegistry', 'Utility');
but nothing ... and my debug( $view = ClassRegistry::getObject('view'));
always return false
--
Our newest site for the community: CakePHP Video
hello,
Somebody already used the Sphinx for generating documentation of their
systems in cakePHP?
like a book.cakephp.org?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
Thaks. Solved
Em terça-feira, 3 de julho de 2012 18h32min58s UTC-3, cricket escreveu:
On Tue, Jul 3, 2012 at 8:31 AM, Lucas Simon Rodrigues Magalhaes
lucass...@gmail.com wrote:
The error appear in this line:
'scope' = array('User.status' = Configure::read('User.ACTIVE
this in AppController:
public function beforeFilter() {
parent::beforeFilter();
$this-Auth-userScope = Configure::read('User.ACTIVE');
}
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/7/2 Lucas Simon Rodrigues Magalhaes lucass...@gmail.com
Hello,
I have a little problem in my auth
Hello,
I have a little problem in my auth component in cakePHP 2.2.
I set in my bootstrap.php [1] many CONSTANTS,
example,Configure::write('User.ACTIVE', 'A'); and I wanna to use this
constant in my auth component, but when I used
Configure::read('User.ACTIVE'), the cakePHP show-me an
Hello there!
I have a system in CakePHP 1.2.7, and I wanna migrate to the new version.
So I prefer waiting the new release, than migrate to CakePHP 2.1
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
and the 2.2 stable?
Em terça-feira, 26 de junho de 2012 12h17min41s UTC-3, Justin Edwards
escreveu:
https://github.com/cakephp/cakephp/tree/2.2
https://github.com/cakephp/cakephp/zipball/2.2
On Tue, Jun 26, 2012 at 8:58 AM, Lucas Simon Rodrigues Magalhaes
lucass...@gmail.com wrote
://cakephp.lighthouseapp.com/projects/42648-cakephp/milestones/139707-220
It is very stable. It's technically in beta, but that doesn't mean much.
On Tue, Jun 26, 2012 at 10:24 AM, Lucas Simon Rodrigues Magalhaes
lucass...@gmail.com wrote:
and the 2.2 stable?
Em terça-feira, 26 de junho de 2012
2012 10:14:42 UTC+1, Борислав Събев wrote:
Hi, Lucas.
Firstly if you're developing a REST service it's best to use Cake 2.x and
higher - you can just use the latest stable version. The new Cake version
has a lot of improvements which will come in handy when you're doing a REST
service.Then
Hello I need to build an application in Webservice to return data for a
particular billing.
I thought about using REST to provide data json / xml instead of nusoap,
but I'm sure how to do it.
First I'm using cakePHP version 1.3, and following the cake book [1].
According to according to the
Use type:
Example: ?php echo $this-Form-create('Users', *array('type' = 'file')*
);?
Em quinta-feira, 29 de março de 2012 01h22min03s UTC-3, Thiago Silva
escreveu:
Hello,
I'm trying to use MeioUpload 4.0 with CakePHP 2.1, but I'm getting
this error:
Warning (2): finfo_file(A):
Thks @José Lorenzo
It works.
And i tested also ?php $this-here ?
On 18 dez, 22:04, Lucas Simon Rodrigues Magalhaes
lucass...@gmail.com wrote:
i don't find in cake book
http://stackoverflow.com/questions/8555607/wich-command-use-in-cakeph...
--
Our newest site for the community: CakePHP Video
i don't find in cake book
http://stackoverflow.com/questions/8555607/wich-command-use-in-cakephp-2-x-similar-to-dispatcherbaseurl
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
Hi, everyone.
I'm new on cake and i decided to start from de 2.0.2.
And I'm kind of stuck in how users can login in my app.
This are my Auth files:
AppController
class AppController extends Controller {
public $components = array(
'Session',
'Auth'=array(
Hii,
I have a doubt, how to download multiples files with cake. I have in
my directory webroot/files, four files.
form1.pdf,form2.pdf,form3.pdf,form4.pdf
In my view i have this code:
h1Formulários/h1
?php echo $this-Form-
create('Formulario',array('target'='_blank'));?
?php
echo
I like, and used the Komodo-edit free.
look this and setup the configure the cakephp:
http://community.activestate.com/faq/how-setup-and-use-cakephp-komodo
other option, is eclipse-ide
On 24 ago, 23:33, sue lassie...@gmail.com wrote:
Hi all...i'm really new in cakephp...so,could somebody
Hi Jeremy, the data can´t be ordered beacuse it´s a business account
data (extracted from a database view) and i need to show it by created
date with all the debts, payments and the actual balance (is because
of the balance that i can´t let the user to specify some kind of
order).
Lucas.
On 19
Hi people, is it possible to set as default the last page of the
paginated data from the controller? Is there an option available to do
this?
thanks in advance!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
Majerlehttp://majerle.eu
2011/4/18 Jeremy Burns | Class Outfit jeremybu...@classoutfit.com
Sort the data in reverse order?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 18 Apr 2011, at 20:32, lucas wrote:
Hi people, is it possible to set
to the last page. whatever that
last page's number is.
That is the way Controller::paginate works in 1.3
On Mon, Apr 18, 2011 at 3:42 PM, lucas chizovo...@gmail.com wrote:
I can´t do that because the data can´t be ordered. I need it in that
way...
On 18 abr, 16:37, Tilen Majerle
the following in your
controller:
$data = $this-Article-read(null, $id);
$article = $data['Article'];
$this-set(compact(article, data));
and access $article['name'] etc. in your view.
On Mar 24, 7:52 pm, Lucas Costa lucasrco...@gmail.com wrote:
Hi. I've been working with Cake for a while
Hi. I've been working with Cake for a while and something always comes
up to my mind when writing a view, which I'll share:
We all know how Cake spits a simple find('first'), right:
Array
(
[ModelName] = Array
(
[id] = 83
[field1] = value1
)
Hi all, Triple Smart (http://www.triplesmart.com) is looking for
CakePHP programmers for freelance projects or a full/part-time jpb in
Córdoba, Argentina.
The workplace would be our offices near ciudad universitaria, and you
should also have experience with XHTML/CSS and jQuery, and be open to
Lets say that in an application we have two groups: buyers and
sellers. (In an ACL setup like the cookbook example tutorial).
When the seller add a product, he can see all comments posted by
potential buyers and add images thru the product url (/product/28)
When the seller gives his product url to
Iglesias cakephpi...@gmail.comwrote:
Hi
El 21/01/2010, a las 23:44, Lucas Loss escribió:
4. Then I've renamed the file database.php.default to database.php;
5. Back to the browser I reloaded the page and noticed a new sentence:
I miss a step between these. Have you configured your
the same steps on his machine
(Ubuntu) and didn't get this error.
So I installed Ubuntu and after having everything ready to start
studying cakephp, I got the same problem!
Any ideas on how to solve this?
Cheers
Lucas Loss
Check out the new CakePHP Questions site http://cakeqs.org and help others
of mine tried the same steps on his machine (Ubuntu) and
didn't get this error.
So I installed Ubuntu and after having everything ready to start studying
cakephp, I got the same problem!
Any ideas on how to solve this?
Cheers
Lucas Loss
Check out the new CakePHP Questions site http://cakeqs.org
Hello fellows,
what do you think about putting an Sanitize::clean on the AfterFind of every
Model?
Wouldn't that ensure same security and a lot less code?
What would be the down side?
Regards...
--~--~-~--~~~---~--~~
You received this message because you are
Hi, I've been researching a bit with the same pupose but teknoid in
the IRC channel tipped me that unless I was building a complete mass
mailing solution and all the stuff that comes with it, it would be
better to hire an existing service.
Then I said what would stuff be and here is his
without setting it.
Regards
On Jul 27, 4:13 pm, Jaydeep Dave jaydipd...@gmail.com wrote:
Hi Lucas,
I think it blocks the page using http authentication method (similar to
.htpasswd)
On Mon, Jul 27, 2009 at 10:34 AM, Lucas Costa lucasrco...@gmail.com wrote:
Hello fellows, I think there's a lack
.
Lucas Costa
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr
Hi all!
I was starting to work with some HABTM relations and I've found the
following problem: Whenever I try to save the relationship between the
models I'm using (subject,teacher) more than one time, cake creates
duplicate entries into the subjects_teachers table.
I've created an unike key so
//-
I have also seen suggestions for:
$this-Parametername-create( $this-data['Parametername'] );
$this-Parametername-save();
//
i already change that! thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi, in my edit method, sometimes i need to update my fields and
sometimes i need to add new ones. I´m trying to use $this-myModel-
create() to reset the fields when i need to insert a new row, but
nothing happens, i always get the last ID updated... so the foreach is
updating the last row updated
solved! i don´t know if this is the best way, but assign false to the
ID worked:
$this-data['Parametername']['ParameternameID'] = false;
this is suppose that the create function do this, but it doesn´t for
some reason that i´m not able to see.
Hi Brendon,
Same problem even after modifying the datetime field to Allow Null and
default to Null.
Any ideas?
Thanks.
Lucas
On May 8, 1:57 am, Brendon Kozlowski brendon...@hotmail.com wrote:
The `created` field must (1)be a datetime field, (2)NULL must be
allowed, (3)and default to NULL
Hi, i have this problem that is killing me slowly jeje, in my view a
have about 14 or 15 hidden inputs cause i need them in the edit
action. But when i submit the page, one of them is not submitted and
the rest are submitted fine. I checked the html code and looks fine,
so the hidden input is not
this are the fragments:
-view:
?php echo $form-hidden('collparamIDS',array('value'=
$paramTestcollparameterID));?
-edit action:
$this-set('paramTestcollparameterID',
$parameterTestcollparamID);
-html code:
input type=hidden name=data[Test][collparamIDS]
value=553,554,555,556
Brian, you were right! I thought that when you call a php code inside
a javascript code, it will create a data stream to the server and
execute that part of the php code there... wrong! i wrote inside the
append function the html code that i wanted as you tell me and that
worked fine!!!
thanks
Hi people! i´m generating some input fileds dinamically with
jquery...
to generate the input fields i am using this code: $
(#newFormField).append('?php echo $form-input('',array
('label'='Nombre'));?');
the problem is that i need to generate the name and the id of the
input using some jquery
Hi Brian, thanks for your answer. The matter here is that i can
generate the elements dinamically but i´m not able to generate their
names dinamically, all the new input fields generated has the same
name and same ID... so, i want to to concatenate in the name of the
input field a variable number
Hi gearvOsh,
Unfortunately nothing happens again :(
I tryed with both options (required = true and notEmpty rule) and
nothing happens.
More tips?
Thanks!
On 29 dez 2008, 23:24, gearvOsh mileswjohn...@gmail.com wrote:
You either need to have:
required = true
Or use the notEmpty rule.
Hi gearvOsh,
Unfortunately nothing happens again :(
I tryed with both options (required = true and notEmpty rule) and
nothing happens.
More tips?
Thanks!
On 29 dez 2008, 23:24, gearvOsh mileswjohn...@gmail.com wrote:
You either need to have:
required = true
Or use the notEmpty rule.
Hi guys,
I'm trying to use data validation on my model but I don't find where
is my error.
When I leave a form field empty, nothing happens (no message erros).
But when fill all fields, all data is saved to database.
Any skilled guy could help me?
Below are some pieces of my code. If you need
try with:
Configure::write('App.base', '');
inside config/core.php
good luck.
On Jul 16, 8:49 am, Adam Royle [EMAIL PROTECTED] wrote:
There should be a .htaccess file in the level above your app folder
which uses mod_rewrite to forward the request app/webroot/index.php
So if your folder
= $pagina['Pagina']['hits']
+ 1; echo 'Atualizar hits para: ' . $hits;
$this-Pagina-saveField('hits',$hits); }
--
Lucas Ferreira
Burn web.studio: http://www.burnweb.com.br/
Pessoal: http://www.lucasferreira.com
.
--
Lucas Ferreira
Burn web.studio: http://www.burnweb.com.br/
Pessoal: http://www.lucasferreira.com/
--~--~-~--~~~---~--~~
Recebeu esta mensagem porque está inscrito em Grupo Cake PHP Português do
Grupos Google.
Para
: [EMAIL PROTECTED]
Fone: (92) 3088-6750
Celular: (92) 9117-3879
--
Geovane Lopes da Silva
MSN: [EMAIL PROTECTED]
Fone: (92) 3088-6750
Celular: (92) 9117-3879
--
Lucas Ferreira
Burn web.studio: http://www.burnweb.com.br
- Empreendendo o Futuro
www.infojr.ufba.br
--
Lucas Ferreira
Burn web.studio: http://www.burnweb.com.br/
Pessoal: http://www.lucasferreira.com/
--~--~-~--~~~---~--~~
Recebeu esta mensagem porque está inscrito em Grupo
:
Caso não queira usar o ID você pode buscar o nome do campo mesmo.
neste exemplo ficaria:
data[Itemcusto][valorTotal]
Você pode fazer isso facilmente vendo o código fonte gerado pelo seu
código também
abraços,
Marcio Trindade
On 22 ago, 21:41, Lucas Ferreira [EMAIL
Hi,
I'm using cakephp with mysql right now, which is really simple also
due to mysql describe function that tell cakephp how my tables look.
I know that PostgreSQL lack describe function. So when I change my
dbms to PostgreSQL will it mean that I have to specify in some cakephp
configuration
('Itemcusto/valorTotal', array('size'='20',
'onKeyUp'='moeda(this,15)'))?brbr
Qual o nome do campo?
Grato,
--
Geovane Lopes da Silva
MSN: [EMAIL PROTECTED]
Fone: (92) 3088-6750
Celular: (92) 9117-3879
--
Lucas Ferreira
Burn web.studio: http
update, mas
como faco para ele setar 0 no campo ativo da tabela?
agradeco qualquer ajuda!
--
Lucas Ferreira
Burn web.studio: http://www.burnweb.com.br/
Pessoal: http://www.lucasferreira.com
Hi,
I was wondering if there was a simple way to set your own style to
standard paginator element that appears on each page (i mean the line
Previous | 1 | 2 | 3 | Next).
Can this be done by creating some template file and applying it to
paginator element? Or do I have to modify paginator class
I'm pretty sure this problem is related to some basic setting, but I
couldn't solve it myself.
A lot examples of valid cakephp templates code use this kind of php
openning tag: ?=. I belive it works the same way like ?php echo, but
it's a lot more friendly. Unfortunately, ?= doesn't work at my
76 matches
Mail list logo