Welcome, Guest
Username: Password: Remember me

TOPIC: J3 Ready

Re: J3 Ready 10 Jan 2013 17:51 #6394

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
Have I told you lately that I love you
Have I told you there's no one else above you
Fill my heart with gladness
Take away all my sadness
Ease my troubles that's what you do

(K+1 for the first to find out the singer)
Last Edit: 10 Jan 2013 17:52 by VeCrea.
The administrator has disabled public write access.

Re: J3 Ready 10 Jan 2013 18:52 #6395

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
too easy! 'Have I Told You Lately' is the song, written by Van Morrisson, covered by many... Rod Stewart probably one of the most famous covers...

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: J3 Ready 10 Jan 2013 18:54 #6396

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
K+1, as promised... you're the best hun
The administrator has disabled public write access.

Re: J3 Ready 10 Jan 2013 20:00 #6397

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Cheers V!

You cooking up a music trivia app at the moment or something?

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: J3 Ready 10 Jan 2013 20:15 #6398

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
I have been taking a break lately, had way too much to do until dec.15. and almost burnt out.
I'm starting real work again on monday, but i was cooking an invoice app tonight.
Last Edit: 10 Jan 2013 20:15 by VeCrea.
The administrator has disabled public write access.

Re: J3 Ready 10 Jan 2013 20:36 #6399

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Cool, good luck with it and glad you had some time off!!! ;)
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: J3 Ready 11 Jan 2013 20:34 #6412

  • cliffordsean
  • cliffordsean's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 1
  • Karma: 1
tnx for update.

and thanks for work - looking forward to taking J3 for a ride !
The administrator has disabled public write access.

Re: J3 Ready 13 Feb 2013 06:31 #6718

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
cliffordsean wrote:
yup sorry full line is

[10-Jan-2013 11:41:59] PHP Fatal error: Call to undefined method JController::getInstance() in /www/merrytest/administrator/components/com_applicants/applicants.php on line 63

I know Admin's listening, watching and working on a painless transition for us but as always Im a sucker for punishment and really the school of hard knocks is the only way to fully understand something new (jmo)

playing with J3.0.x i find the above as well

If your like me you have many projects that are extensively modified outside the general Cook download

With an interest of helping people that have extensive code modifications to convert to Jooma 3.0.x here is a list of what i have found perhaps others could post "potential backward compatibility issues" and solutions for your "existing-modified" components

For the above one solution is.
//REMOVED  Joomla 2.5.x
//echo(JFactory::getApplication()->get('JComponentTitle')); 
//REPLACED WITH (Joomla 3.0.x)
echo JFactory::getApplication()->JComponentTitle;

Others that i have found...
Change all classes that directly extend JObject - JController, JModel, JView

- do not extend JModelList, JModelItem JModelAdmin... they are already extended by inheritance
class ComponentnameViewLayoutname extends JView
{
// Replace With
class ComponentnameViewLayoutname extends JViewLegacy
{
class ComponentnameViewLayoutname extends JController
{

//Replace With
class ComponentnameViewLayoutname extends JControllerLegacy
{
class ComponentnameViewLayoutname extends JModel
{

// Replace With
class ComponentnameViewLayoutname extends JModelLegacy
{
$controller = JController::getInstance(

//replace with
$controller = JControllerLegacy::getInstance(
$controller = JModel::getInstance(

//replace with
$controller = JModelLegacy::getInstance(
$controller = JView::getInstance(

//replace with
$controller = JViewLegacy::getInstance(

I did find a place where i had to define the directory separator as follows
<?php defined('JPATH_BASE') or die;

if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
?>

With the above changes i now have modified components that install on Joomla 3.0.x
Still working on the following...
- Remove extensions of JObject
- dom.php (class JDom extends JObject)
- what to extend it with ?? JModelLegacy??

- correct installer xml file

At present i have no Toolbar in frontend?
Last Edit: 13 Feb 2013 07:21 by BTB300.
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy

Re: J3 Ready 13 Feb 2013 08:21 #6720

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Good onya mate!

K+1 for that! I'm sure there are a few people around who'll find this very useful!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: J3 Ready 13 Feb 2013 09:34 #6726

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Still very much a work in progress... not fully tested... just started :silly:
Last Edit: 13 Feb 2013 09:35 by BTB300.
The administrator has disabled public write access.

Re: J3 Ready 13 Feb 2013 18:45 #6735

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I do a favor... because, yes I am reading and taking notes of everything to furnish you a good stabilizated version. I cannot always answer the same : "It will be fixed please be patient...". Thank you very much for all your contributions when I cannot answer.

Here is what I have implemented in 2.0 in a file called helpers/mvc.php :
// no direct access
defined('_JEXEC') or die('Restricted access');


jimport('joomla.version');
$version = new JVersion();


// Joomla! 1.0 - 1.5
if (version_compare($version->RELEASE, '1.6', '<'))
{
	exit('Not Supported');	
}




// Joomla! 1.6 - 1.7 - 2.5
else if (version_compare($version->RELEASE, '3.0', '<'))
{
	
	// Joomla 1.6
	if (version_compare($version->RELEASE, '1.6', '='))
	{
		if (!class_exists('JInput'))
			CkJLoader::register('JInput', JPATH_ADMIN_DEMO120 .DS.'legacy' .DS. 'input' .DS. 'input.php');
	}
	// Joomla 1.7
	else if (version_compare($version->RELEASE, '2.5', '<'))
	{
		jimport('joomla.application.input');	
	}
	
	
	
	// MVC
	if (!class_exists('CkJController'))
	{
		jimport('joomla.application.component.controller');
		jimport('joomla.application.component.model');
		jimport('joomla.application.component.view');
		
		class CkJController extends JController{}	
		class CkJModel extends JModel{}
		class CkJView extends JView{}
	}

	if (!class_exists('CkJSession'))
	{
		class CkJSession extends JSession
		{
			public static function checkToken($method = 'post')
			{
				return JRequest::checkToken($method);
			}	
		}
	}
	
}




//Joomla! 3.0 and later (Legacy Mode)
else if (version_compare($version->RELEASE, '3.0', '>='))
{
	if (!class_exists('CkJController'))
	{
		jimport('legacy.controller.legacy');
		jimport('legacy.model.legacy');
		jimport('legacy.view.legacy');
		
		class CkJController extends JControllerLegacy{}
		class CkJModel extends JModelLegacy{}
		class CkJView extends JViewLegacy{}
		class CkJSession extends JSession{}
	}
}

And then use CkJController instead of JController.

I really do not like to put ck prefix because it is like a signature of cook, and I would prefer without. The same in the models/fields/ckXXXX.php
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: BTB300, JoomGuy

Re: J3 Ready 15 Feb 2013 12:01 #6763

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Thanks Admin,
Your assistance and as always your effort with continual Cook development and progress is most appreciated... ;)

My dabbling in Joomla 3.0 came after a failed site migration from Joomla 1.5 to 2.5 but i was able to migrate my site to 3.0 successfully...

You should be proud you have not only created a wonderful component creator but a strong Cook Community forum that provides a multitude of information, support and assistance (both from you and other forum members)

Although I do question if audibleid actually sleeps (many thanks Gez)

As for the signature issue just a thought...
but could you not prefix the CkController with a random prefix as part of the build process
but i guess this could cause some issues if two components happened to the same 2 character prefix?

Anyhow thanks again for your assistance
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy

Re: J3 Ready 15 Feb 2013 15:03 #6765

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Thanks @BTB300!!! - and yes, I do sleep BTW :lol:

@admin - Just wanted to reiterate everything that @BTB300 said really!
BTB300 wrote:
You should be proud you have not only created a wonderful component creator but a strong Cook Community forum that provides a multitude of information, support and assistance (both from you and other forum members)
And, IMHO it is the quality of, and passion for this wonderful software that you've created that means us forum users are so glad to help!!! ;)
BTB300 wrote:
As for the signature issue just a thought...
but could you not prefix the CkController with a random prefix as part of the build process
but i guess this could cause some issues if two components happened to the same 2 character prefix?
What about prefixing with the component name instead?

BTB300 raises a good point about the potential collision with other names if they were using just the initials of the component name however, if the prefix were MycomponentnameController then I guess there'd be little chance of a collision. It would also be a very easy thing to search & replace in the event that there was a collision where as finding and replacing 2 or 3 initials such as "Mcn" (Mycomponentname) may yield lots of occurrences elsewhere too.

Just a thought and as always, happy to bow down to your superior knowledge!

Best wishes!

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: J3 Ready 16 Feb 2013 12:12 #6776

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
About the community, yes, in facts, since the beginning of working on Joomla, I more often arrive on 'Stack Overflow' than 'Joomla.org' for my researches. Now, when I search something I often arrive on this forum.

It is really nice that Joomla has now a 'pure dev' forum with almost only developpers, that avoid the confusion with all the issues regarding others components (not homemade).

About the prefix, it cannot collisate because I am testing the vars before. (I work with multiples components easily, now)
Well I test only CkJController, but it is good enough for the moment.

An idea, I cound use 'My' prefix inslead of 'Ck'. > MyJController could be a nice name. Arggh I must change it now before to release. I should have asked before. Damned !!

For the fields it can be the same...

I know !! ... custom and 'My' by default... Let's see. I do not promise anything for the moment, but my new internal framework can do it easily because ... just amazing part.

I am so sorry for this night the server was down because you was too much. This is not a Cloud and the size of it is good for the moment. I must also treat this point to manage a higher charge. I just answered something already about JDom :
www.j-cook.pro/forum/14-news-a-chillout/...ssues-with-jdom#6772

And to finish this long post, just for you to know, here are the main points in this coming version :
I am very late about the day of the release, but lot of things has been added wich was not planned before.
Here is a non exhaustive list of what is going on in this new 2.5
  • Loader (Easy to load from third part, and avoid collisions)
  • Fork engine (You will be able the reinstall and keep your changes)
  • Cross compatibility layer (1.6 - 1.7 - 2.5 - 3.0)
  • Strict standards
  • Cured and attentionated job (excellent coding)
  • Ready for mobile phones and tabblets
  • Optimization of JDom and component
  • CPanel
  • jQuery UI - Bootstrap - IcoMoon, ...
(For sure I am missing a lot I even do not remember myself ...)

Now I am finishing the rendering (and lot of details) The fields, the grids, the filters, etc... jQuery UI :whistle:
.. and doing thousands of tests (the most boring part)

Let's buzz about it :silly: ... and patience, keep some energy for migrating. Actually, it is not the moment to custom and write inside your component, because you will need to copy your changes in the 'fork' directory.

I tell to everybody listening the line here :
-> Find all your changes in your components and comment them to be able to find them easily.

EDIT :
I cannot say any date for the release, beacause for me it is important to finish properly and you will have no regrets.
The only class I will not rewrite for the moment is class/images.php because now in 3.0 we have JImage that does an excellent job, and I want to use it.

But the images are soo long to test, and my class is working well for the moment.
When everything will be stable, I will implement JImages and add it in your component for cross compatibility (usable even in 1.6). As well, I will improve the class with nice functionalities. Let's talk about it later. Just to know, JImage will not be handled yet.
Coding is now a piece of cake
Last Edit: 16 Feb 2013 12:21 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: VeCrea

Re: J3 Ready 16 Feb 2013 12:19 #6777

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
admin wrote:
... Fork engine (You will be able the reinstall and keep your changes)
WOW! :silly: :woohoo:

Seriously, we will be able to upload our modified components??? ;)

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
Time to create page: 0.097 seconds

Get Started