Hi Nilesh, your project is so great, i have been playing with it, before i finded i havent clear some ideas, rigth now im trying to implement something similar for my projects, and i have some questions:
1- In the dao extended classes how do you do to make relations??, for example if you have three tables:
sections (1) -------- (N) articles (1)-------- (N) comments and you want to show in a page, all the articles, and every article, contain the name of the section that belongs, and the number of comments that has, i think that maybe it can be implementing a method called for example, showArticles, that return an array, something like this :
$articles[0]=[[$objectArticle][$objectSection][$numOfComments]]
2- About the dao generated classes, all the classes are similiar, maybe is better to do a dao general class???
for example the method create:
3- I supposed that right know u are working in a php5 version, and i want to know if you are planning to developep this new version usign MVC. What do you think about mojavi, or other frameworks???
4- If you developed a application using PCG , and want to make blocks, not only header and footer, what do you do??
5- I see that in your last version of phpCodeGenie you make a plugin to make language file, like you see, my english is so poor (sorry, im trying to improve) but if you want, i can make an spanish translation, tell me ... if you want.
Excuse me for bloating you of questions but i havent clear enought concepts to make serious OOP projects with php, and i see that u have the experience, and maybe in the past you have similiar doubts....
cheers
Javier from Spain.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Nilesh, your project is so great, i have been playing with it, before i finded i havent clear some ideas, rigth now im trying to implement something similar for my projects, and i have some questions:
1- In the dao extended classes how do you do to make relations??, for example if you have three tables:
sections (1) -------- (N) articles (1)-------- (N) comments and you want to show in a page, all the articles, and every article, contain the name of the section that belongs, and the number of comments that has, i think that maybe it can be implementing a method called for example, showArticles, that return an array, something like this :
$articles[0]=[[$objectArticle][$objectSection][$numOfComments]]
2- About the dao generated classes, all the classes are similiar, maybe is better to do a dao general class???
for example the method create:
/**
* @return void
* @param $value object $info
* @desc Introduzca descripcin aqu...
*/
function crete($info)
{
if (is_object($info)) {
$variables=get_object_vars($info);
$nombreClase=get_class($info);
$sql = "insert into ".$nombreClase;
$campos='(';
$valores='';
foreach ($variables as $variable=>$valor)
{
if ($valor!=null){
$campos.=$variable.',';
$valores.= "'".$valor."',";
}
}
$campos=substr($campos,0,-1);
$valores=substr($valores,0,-1);
$sql.= $campos .") values (".$valores .")";
$this->conecta();
if ($this->_oConesion->Execute($sql) === false) {
return false;
}else {
return true;
}
}else{
return false;
}
}
what do you think about this???
3- I supposed that right know u are working in a php5 version, and i want to know if you are planning to developep this new version usign MVC. What do you think about mojavi, or other frameworks???
4- If you developed a application using PCG , and want to make blocks, not only header and footer, what do you do??
5- I see that in your last version of phpCodeGenie you make a plugin to make language file, like you see, my english is so poor (sorry, im trying to improve) but if you want, i can make an spanish translation, tell me ... if you want.
Excuse me for bloating you of questions but i havent clear enought concepts to make serious OOP projects with php, and i see that u have the experience, and maybe in the past you have similiar doubts....
cheers
Javier from Spain.